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

Disassembly:
mov eax, dword [0x40fdd4]
sub esp, 0x8fc
push ebx
push ebp
xor ebp, ebp
push esi
cmp eax, ebp
jne 0x40328e
push 1
call fcn.00402e10
add esp, 4
mov ebx, dword [esp + 0x90c]
push ebx
call fcn.004038a0
mov eax, dword [ebx + 0x18]
add esp, 4
push ebp
push ebp
push ebp
push eax
push ebp
push 8
call dword [0x40fcf8]
mov ecx, dword [ebx + 0xc]
mov esi, eax
mov eax, dword [ebx + 0x10]
and esi, 1
cmp eax, ebp
jne 0x4032c2
or ecx, 0x10
jmp 0x4032cf
cmp eax, 1
jne 0x4032cc
or ecx, 0x20
jmp 0x4032cf
or ecx, 0x30
push 1
push ebp
push ebp
push ecx
push ebp
push 0x10
call dword [0x40fcf8]
and esi, eax
mov eax, dword [ebx + 0x10]
cmp eax, ebp
jne 0x4032fa
mov eax, dword [ebx + 0x14]
push 1
dec eax
push ebp
push ebp
push eax
push ebp
push 0x20
call dword [0x40fcf8]
and esi, eax
mov eax, dword [ebx + 8]
push ebp
push ebp
push ebp
push eax
push ebp
push 0x100
call dword [0x40fcf8]
and esi, eax
mov eax, dword [ebx + 0x1c]
push ebp
push ebp
push ebp
push eax
push ebp
push 0x400
call dword [0x40fcf8]
and esi, eax
mov eax, dword [ebx + 0x2c]
push ebp
push ebp
push ebp
push eax
push ebp
push 0x2000
call dword [0x40fcf8]
lea ecx, [esp + 0x2c]
and esi, eax
mov eax, dword [ebx + 0x30]
push ecx
push 2
mov dword [esp + 0x34], eax
call dword [0x40fd34]
and esi, eax
mov eax, dword [ebx + 0x20]
cmp eax, ebp
mov dword [esp + 0x10], esi
jne 0x403361
mov dword [ebx + 0x24], 1
lea edx, [esp + 0x68]
push edi
lea eax, [esp + 0x10]
push edx
push eax
push ebp
xor edi, edi
call dword [0x40fdcc]
test eax, eax
je 0x40338f
lea ecx, [esp + 0x6c]
lea edx, [esp + 0x10]
inc edi
push ecx
push edx
push edi
call dword [0x40fdcc]
test eax, eax
jne 0x403379
mov eax, dword [ebx + 0x48]
mov ecx, dword [ebx + 0x24]
cmp eax, ecx
jbe 0x4033cf
lea edi, [eax - 1]
cmp edi, ecx
jb 0x4036a9
lea eax, [esp + 0x6c]
lea ecx, [esp + 0x10]
push eax
push ecx
push edi
call dword [0x40fdcc]
mov edx, dword [esp + 0x10]
push edx
call dword [0x40fdbc]
and esi, eax
mov eax, dword [ebx + 0x24]
dec edi
cmp edi, eax
jae 0x4033a4
jmp 0x4036a9
jae 0x4036a9
lea edi, [eax + 1]
cmp edi, ecx
mov dword [esp + 0x1c], edi
ja 0x4036a9
mov esi, dword [sym.imp.KERNEL32.dll_lstrlenW]
jmp 0x4033f0
mov edi, dword [esp + 0x1c]
mov ecx, dword [0x40fcdc]
lea eax, [esp + 0x44]
push 0x14
push eax
push 0x7e6
push ecx
call dword [sym.imp.USER32.dll_LoadStringW]
lea edx, [esp + 0x44]
push edi
push edx
lea eax, [esp + 0x74]
push str._s_d
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
mov ecx, 0x27
xor eax, eax
lea edi, [esp + 0x11e]
mov word [esp + 0x11c], bp
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov ecx, 0x27
xor eax, eax
lea edi, [esp + 0x25e]
mov word [esp + 0x25c], bp
rep stosd dword es:[edi], eax
add esp, 0x10
lea ecx, [esp + 0x10c]
lea edx, [esp + 0x34]
mov dword [esp + 0x28], ebp
push ecx
push edx
push ebp
mov dword [esp + 0x2c], ebp
stosw word es:[edi], ax
mov dword [esp + 0x30], ebp
call dword [0x40fdcc]
test eax, eax
je 0x4035c8
lea eax, [esp + 0x10c]
push eax
call esi
lea ecx, [esp + 0x6c]
mov edi, eax
push ecx
call esi
cmp edi, eax
jl 0x40357a
lea edx, [esp + 0x6c]
push edx
call esi
inc eax
lea ecx, [esp + 0x24c]
push eax
lea eax, [esp + 0x110]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcpynW]
lea edx, [esp + 0x6c]
lea eax, [esp + 0x24c]
push edx
push eax
call fcn.00406a81
add esp, 8
test eax, eax
jne 0x40357a
mov ecx, 0x27
lea edi, [esp + 0x1ae]
mov word [esp + 0x1ac], bp
mov dword [esp + 0x24], 1
rep stosd dword es:[edi], eax
lea ecx, [esp + 0x6c]
push ecx
stosw word es:[edi], ax
call esi
lea edx, [esp + eax*2 + 0x10c]
lea eax, [esp + 0x1ac]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
lea ecx, [esp + 0x1ac]
push ecx
call esi
cmp eax, 5
jl 0x40357a
lea edx, [esp + 0x1ac]
push 5
lea eax, [esp + 0x3c]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpynW]
lea ecx, [esp + 0x38]
push str._wiz
push ecx
call fcn.00406a81
add esp, 8
test eax, eax
jne 0x40357a
lea edx, [esp + 0x2c]
lea eax, [esp + 0x1b4]
push edx
push 0x40eb38
push eax
mov dword [esp + 0x38], ebp
call fcn.00406ab6
mov eax, dword [esp + 0x38]
mov ecx, dword [esp + 0x2c]
add esp, 0xc
cmp eax, ecx
jbe 0x40357a
mov dword [esp + 0x20], eax
mov eax, dword [esp + 0x28]
lea ecx, [esp + 0x10c]
lea edx, [esp + 0x34]
inc eax
push ecx
push edx
push eax
mov dword [esp + 0x34], eax
call dword [0x40fdcc]
test eax, eax
jne 0x40347e
cmp dword [esp + 0x24], ebp
je 0x4035c8
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x1c]
inc eax
lea edx, [esp + 0x44]
push eax
push ecx
push edx
lea eax, [esp + 0x78]
push str._s_d_wiz_d
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x14
mov ecx, 0x188
xor eax, eax
lea edi, [esp + 0x2ec]
mov dx, word [0x40fdd8]
rep stosd dword es:[edi], eax
mov ecx, dword [esp + 0x908]
lea eax, [esp + 0x10]
and ecx, 0xfffff6cb
mov word [esp + 0x2ec], dx
or ecx, 0x4ca
push eax
mov dword [esp + 0x90c], ecx
lea ecx, [esp + 0x2f0]
lea edx, [esp + 0x70]
push ecx
push edx
mov dword [esp + 0x1c], ebp
mov dword [esp + 0x24], ebp
call dword [0x40fcec]
mov ecx, dword [esp + 0x14]
push 0x40fdd8
and ecx, eax
mov dword [esp + 0x18], ecx
call esi
push eax
mov eax, dword [esp + 0x14]
push 0x40fdd8
push eax
push 0x20
call dword [0x40fdc8]
push 0x40fdd8
call esi
mov ecx, dword [esp + 0x10]
push eax
push 0x40fdd8
push ecx
push 0x80
call dword [0x40fdc8]
mov eax, dword [esp + 0x10]
lea edx, [esp + 0x18]
push 4
push edx
push eax
push 0x100
mov dword [esp + 0x28], ebp
call dword [0x40fdc8]
mov edx, dword [esp + 0x10]
lea ecx, [esp + 0x18]
push 4
push ecx
push edx
push 0x10
mov dword [esp + 0x28], ebp
call dword [0x40fdc8]
mov eax, dword [esp + 0x1c]
mov ecx, dword [ebx + 0x24]
inc eax
cmp eax, ecx
mov dword [esp + 0x1c], eax
jbe 0x4033ec
mov eax, dword [ebx + 0x68]
mov ecx, dword [ebx + 0x28]
cmp eax, ecx
mov dword [ebx + 0x6c], ebp
pop edi
je 0x4036be
mov dword [ebx + 0x6c], 1
lea ecx, [esp + 0x10]
mov dword [esp + 0x10], ebp
push ecx
push 1
call dword [0x40fd24]
mov edx, dword [ebx + 0x68]
mov eax, dword [esp + 0x10]
cmp edx, eax
je 0x4036e1
mov dword [ebx + 0x6c], 1
call dword [0x40fd04]
call dword [0x40fd44]
pop esi
pop ebp
pop ebx
add esp, 0x8fc
ret