Function at 0x470f90
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x4a0
mov edi, 0x40000
cmp dword [ecx + 0x14], 0
jne 0x470fb2
mov esi, ecx
mov edi, 0x50000
cmp byte [ecx + 0x2c], 0
je 0x470fc1
mov eax, edi
add esp, 0x4a0
pop esi
pop edi
pop ebx
pop ebp
ret 0x10
mov ebx, dword [esp + 0x4c0]
xor eax, eax
cmp ebx, 4
mov ecx, 0xc
cmove ecx, eax
mov eax, dword [esi]
test eax, eax
cmove ecx, eax
mov dword [esp + 0xc], ecx
lea ebp, [esp + 0x39c]
push dword [esp + 0x4b4]
push ebp
call sub.api_ms_win_crt_string_l1_1_0.dll_strcpy
add esp, 8
mov al, byte [esp + 0x39c]
mov edi, 0x10000
test al, al
je 0x470fb2
lea ecx, [esp + 0x39d]
cmp al, 0x5c
je 0x471018
test al, al
jne 0x47101c
jmp 0x471021
mov byte [ecx - 1], 0x2f
mov al, byte [ecx]
inc ecx
jmp 0x47100e
cmp ebx, 4
jne 0x47103c
push ebp
call sub.api_ms_win_crt_string_l1_1_0.dll_strlen
add esp, 4
cmp byte [eax + ebp - 1], 0x2f
setne al
mov dword [esp], eax
jmp 0x471050
mov dword [esp], 0
push ebp
call fcn.0047030b
add esp, 4
test al, al
je 0x471058
xor edx, edx
mov al, 1
xor ecx, ecx
jmp 0x471061
mov ecx, 8
mov dl, 1
xor eax, eax
mov dword [esp + 8], eax
cmp ebx, 1
mov dword [esp + 4], ecx
mov dword [esp + 0x10], edx
je 0x47108c
cmp ebx, 3
je 0x4710a3
cmp ebx, 2
jne 0x4710c4
mov ecx, esi
push dword [esp + 0x4b8]
call fcn.00470a38
jmp 0x4710b8
mov ecx, esi
push dword [esp + 0x4bc]
push dword [esp + 0x4bc]
call fcn.00470ad6
jmp 0x4710b8
mov ecx, esi
push dword [esp + 0x4bc]
push dword [esp + 0x4bc]
call fcn.00470bfa
mov edi, eax
test eax, eax
jne 0x470fb2
jmp 0x4710d4
cmp ebx, 4
jne 0x470fb2
mov ecx, esi
call fcn.00470cc0
lea edi, [esp + 0x184]
mov dword [edi + 0x214], 0
mov byte [edi - 0x110], 0
push ebp
push edi
call sub.api_ms_win_crt_string_l1_1_0.dll_strcpy
add esp, 8
push edi
call sub.api_ms_win_crt_string_l1_1_0.dll_strlen
add esp, 4
mov dword [edi - 0x130], eax
cmp byte [esp], 0
je 0x471122
push edi
call sub.api_ms_win_crt_string_l1_1_0.dll_strlen
add esp, 4
mov word [esp + eax + 0x184], 0x2f
inc dword [esp + 0x54]
cmp ebx, 4
sete cl
lea ebp, [esp + 0x3c]
mov byte [ebp + 0x24c], 0
xor eax, eax
mov dword [ebp + 0x144], eax
mov dword [ebp + 0x24], eax
mov dword [ebp + 0x350], 1
mov dword [ebp + 0x358], eax
mov word [ebp + 0x2a], ax
mov dword [ebp], 0x140b17
mov edx, dword [esi + 0x68]
mov dword [ebp + 8], edx
mov dword [ebp + 0xc], eax
cmp dword [esi], eax
sete dl
or dl, cl
movzx ecx, dl
xor ecx, 9
mov word [ebp + 4], cx
mov word [ebp + 0x2c], cx
mov ecx, dword [esp + 4]
mov word [ebp + 6], cx
mov ecx, dword [esi + 0x70]
mov edx, dword [esp + 0xc]
add edx, ecx
test ecx, ecx
cmovs edx, eax
cmp byte [esp + 8], 0
cmove edx, eax
mov dword [ebp + 0x10], edx
mov dword [ebp + 0x14], ecx
mov word [ebp + 0x28], ax
mov eax, dword [esi + 0x4c]
mov dword [ebp + 0x30], eax
mov eax, dword [esi + 0x10]
add eax, dword [esi + 0x18]
mov dword [ebp + 0x34], eax
lea ecx, [esp + 0x2b]
mov dword [ebp + 0x13c], ecx
mov dword [ebp + 0x1c], 0x11
lea edx, [esp + 0x20]
mov dword [ebp + 0x140], edx
mov dword [ebp + 0x20], 9
mov dword [ecx], 0xd5455
mov byte [ecx + 4], 7
mov eax, dword [esi + 0x58]
mov byte [ecx + 5], al
mov byte [ecx + 6], ah
mov ebx, eax
shr ebx, 0x10
mov byte [ecx + 7], bl
mov dword [ecx + 5], eax
mov edi, dword [esi + 0x50]
mov dword [ecx + 9], edi
mov edi, dword [esi + 0x60]
mov dword [ecx + 0xd], edi
movsd xmm0, qword [ecx]
shr eax, 0x18
mov byte [edx + 8], al
movsd qword [edx], xmm0
mov byte [edx + 2], 5
push esi
push fcn.0047088c
push ebp
call fcn.0046f8dd
add esp, 0xc
test eax, eax
je 0x471230
mov ecx, esi
call fcn.00470e14
mov edi, 0x400
jmp 0x470fb2
mov eax, dword [esp + 0x54]
add eax, dword [esp + 0x58]
mov ecx, dword [esi + 0x18]
add eax, ecx
add eax, 0x1e
mov dword [esi + 0x18], eax
cmp dword [esi + 0x14], 0
je 0x471258
mov ecx, esi
call fcn.00470e14
mov edi, dword [esi + 0x14]
jmp 0x470fb2
lea edi, [esi + 0x30]
mov dword [esi + 0x30], 0x12345678
mov dword [esi + 0x34], 0x23456789
mov dword [esi + 0x38], 0x34567890
mov ebp, dword [esi]
test ebp, ebp
je 0x471293
mov al, byte [ebp]
test al, al
je 0x471293
inc ebp
movsx eax, al
push eax
push edi
call fcn.00470279
add esp, 8
mov al, byte [ebp]
inc ebp
test al, al
jne 0x47127e
cmp byte [0x4786f8], 0
jne 0x4712b6
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ebx, eax
call dword [sym.imp.USER32.dll_GetDesktopWindow]
xor eax, ebx
push eax
call dword [sym.imp.api_ms_win_crt_utility_l1_1_0.dll_srand]
add esp, 4
xor ebp, ebp
mov ebx, dword [sym.imp.api_ms_win_crt_utility_l1_1_0.dll_rand]
call ebx
shr eax, 7
mov byte [esp + ebp + 0x14], al
inc ebp
cmp ebp, 0xc
jne 0x4712be
mov al, byte [esp + 0x45]
mov byte [esp + 0x1f], al
xor ebp, ebp
movsx eax, byte [esp + ebp + 0x14]
push eax
push edi
call fcn.004702e0
add esp, 8
mov byte [esp + ebp + 0x14], al
inc ebp
cmp ebp, 0xc
jne 0x4712d7
mov eax, dword [esi]
test eax, eax
mov ebx, dword [esp + 0x4c0]
je 0x47131e
cmp ebx, 4
mov ebp, dword [esp + 0xc]
je 0x471322
lea eax, [esp + 0x14]
push 0xc
push eax
push esi
call fcn.0047088c
add esp, 0xc
add dword [esi + 0x18], 0xc
mov eax, dword [esi]
jmp 0x471322
mov ebp, dword [esp + 0xc]
cmp ebx, 4
setne cl
test eax, eax
setne al
and al, cl
mov byte [esi + 0x2d], al
mov eax, dword [esp + 0x10]
and al, cl
cmp al, 1
jne 0x47134a
mov ecx, esi
lea eax, [esp + 0x3c]
push eax
call fcn.00470e50
jmp 0x47135e
and cl, byte [esp + 8]
cmp cl, 1
jne 0x471476
mov ecx, esi
call fcn.00470f4a
mov dword [esp], eax
mov byte [esi + 0x2d], 0
mov ecx, esi
call fcn.00470e14
mov edi, dword [esi + 0x14]
mov eax, dword [esi + 0x90]
add dword [esi + 0x18], eax
test edi, edi
jne 0x470fb2
mov edi, 0x400
cmp dword [esp], 0
jne 0x470fb2
mov ecx, dword [esp + 0x4c]
add eax, ebp
mov edx, dword [esi + 0x78]
mov dword [esp + 0x48], edx
mov dword [esp + 0x4c], eax
mov edx, dword [esi + 0x70]
mov dword [esp + 0x50], edx
cmp byte [esi + 0x1c], 0
je 0x4713bf
cmp dword [esi], 0
je 0x471495
cmp ebx, 4
je 0x471495
movzx edx, word [esp + 0x42]
mov edi, 0x4000000
cmp dword [esp + 4], edx
jne 0x470fb2
cmp byte [esp + 8], 0
je 0x4713e2
cmp ecx, eax
jne 0x470fb2
push esi
push fcn.0047088c
lea eax, [esp + 0x44]
push eax
call fcn.0046fb4c
add esp, 0xc
add dword [esi + 0x18], 0x10
movzx eax, word [esp + 0x68]
mov word [esp + 0x40], ax
mov edi, dword [esi + 0x14]
test edi, edi
jne 0x470fb2
mov ebx, dword [esp + 0x5c]
push ebx
call fcn.00471764
add esp, 4
mov edi, eax
push ebx
push dword [esp + 0x180]
push eax
call sub.VCRUNTIME140.dll_memcpy
add esp, 0xc
mov dword [esp + 0x17c], edi
mov ebx, 0x360
push ebx
call fcn.004716fe
add esp, 4
mov edi, eax
push ebx
lea eax, [esp + 0x40]
push eax
push edi
call sub.VCRUNTIME140.dll_memcpy
add esp, 0xc
mov eax, dword [esi + 0x44]
test eax, eax
je 0x47150a
mov esi, eax
mov eax, dword [eax + 0x35c]
test eax, eax
jne 0x47145f
add esi, 0x35c
jmp 0x47150d
mov dword [esp], 0
cmp ebx, 4
jne 0x471361
mov dword [esi + 0x90], 0
jmp 0x471361
mov eax, dword [esp + 4]
mov word [esp + 0x42], ax
movzx eax, word [esp + 0x40]
test al, 1
jne 0x4714b1
and eax, 0xfff7
mov word [esp + 0x40], ax
mov word [esp + 0x68], ax
mov eax, dword [esp + 0x70]
sub eax, dword [esi + 0x10]
mov ecx, esi
push eax
call fcn.004708a6
test al, al
je 0x471500
push esi
push fcn.0047088c
lea eax, [esp + 0x44]
push eax
call fcn.0046f8dd
add esp, 0xc
test eax, eax
jne 0x470fb2
mov ecx, esi
push dword [esi + 0x18]
call fcn.004708a6
mov edi, 0x2000000
test al, al
jne 0x471403
jmp 0x470fb2
mov edi, 0x2000000
jmp 0x470fb2
add esi, 0x44
mov dword [esi], edi
xor edi, edi
jmp 0x470fb2