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

Disassembly:
mov eax, 0x105c
call fcn.00408fb0
mov eax, dword [esp + 0x1064]
mov ecx, dword [esp + 0x1060]
push ebx
push ebp
xor ebp, ebp
push esi
mov word [eax], bp
mov esi, dword [ecx + 0x34]
push edi
xor edi, edi
xor ebx, ebx
cmp esi, ebp
mov dword [esp + 0x3c], ebp
mov dword [esp + 0x1c], ebp
mov dword [esp + 0x20], ebp
mov dword [esp + 0x24], ebp
mov dword [esp + 0x30], edi
mov dword [esp + 0x34], ebx
mov word [esp + 0x868], bp
mov word [esp + 0x68], bp
je 0x402fc8
jmp 0x402df0
mov ebx, dword [esi + 0x10044]
mov edi, dword [esi + 0x10040]
push ebp
push 0x64
push ebx
push edi
call fcn.00409170
push ebp
push 0x40000000
push edx
push eax
call fcn.004090c0
push ebp
mov dword [esp + 0x30], edx
mov edx, dword [esi + 0x1004c]
push 0x64
mov dword [esp + 0x30], eax
mov eax, dword [esi + 0x10048]
push edx
push eax
call fcn.00409170
push ebp
push 0x40000000
push edx
push eax
mov dword [esp + 0x60], eax
mov dword [esp + 0x64], edx
call fcn.004090c0
or edi, ebx
mov ebp, eax
mov dword [esp + 0x64], edx
je 0x402e6f
mov edx, dword [esi + 0x10040]
mov eax, dword [esp + 0x54]
mov ecx, ebx
push ecx
mov ecx, dword [esp + 0x54]
push edx
push eax
push ecx
call fcn.004090c0
mov dword [esp + 0x14], edx
jmp 0x402e75
xor eax, eax
mov dword [esp + 0x14], eax
cmp word [esi + 0x10016], 0
mov dword [esp + 0x10], eax
lea eax, [esi + 0x10016]
mov dword [esp + 0x4c], eax
jne 0x402e95
mov dword [esp + 0x4c], 0x40a274
mov edx, dword [esp + 0x64]
push 0
push 0x64
push edx
push ebp
call fcn.00408fe0
push 0
mov dword [esp + 0x44], eax
mov eax, dword [esp + 0x30]
push 0x64
mov edi, ecx
mov ecx, dword [esp + 0x30]
push eax
push ecx
mov ebp, ebx
mov dword [esp + 0x54], edx
call fcn.00408fe0
mov dword [esp + 0x5c], edx
mov edx, dword [esp + 0x14]
push edx
mov edx, dword [esp + 0x14]
push edx
mov edx, dword [esi + 0x10038]
push edx
mov edx, dword [esp + 0x50]
push ebp
push edi
push edx
mov edx, dword [esp + 0x58]
push edx
mov edx, dword [esi + 0x10034]
push edx
xor edx, edx
cmp dword [esi + 0x10030], 4
push ebx
push ecx
mov ecx, dword [esp + 0x84]
push ecx
mov ecx, dword [esp + 0x78]
sete dl
push eax
mov eax, dword [esi + 0x1002c]
lea edx, [edx + edx + 0x4c]
push edx
mov edx, dword [esp + 0x10a4]
push eax
mov eax, dword [edx + 0x38]
push ecx
push eax
lea ecx, [esp + 0x8a8]
push ecx
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x44
lea ecx, [esp + 0x868]
lea eax, [esp + 0x68]
mov edx, 0x400
nop
cmp word [eax], 0
je 0x402f4e
add eax, 2
sub edx, 1
jne 0x402f40
test edx, edx
je 0x402f74
movzx edi, word [ecx]
mov word [eax], di
add eax, 2
add ecx, 2
test di, di
je 0x402f68
sub edx, 1
jne 0x402f52
test edx, edx
jne 0x402f74
mov word [esp + 0x866], dx
mov edx, dword [esi + 0x10034]
mov eax, dword [esi + 0x10038]
add dword [esp + 0x3c], edx
add dword [esp + 0x1c], eax
mov ecx, dword [esi + 0x10040]
add dword [esp + 0x30], ecx
mov edx, dword [esi + 0x10044]
mov eax, dword [esi + 0x10048]
adc dword [esp + 0x34], edx
add dword [esp + 0x20], eax
mov ecx, dword [esi + 0x1004c]
mov esi, dword [esi + 0x10050]
adc dword [esp + 0x24], ecx
xor ebp, ebp
test esi, esi
jne 0x402df0
mov edi, dword [esp + 0x30]
mov ebx, dword [esp + 0x34]
push ebp
push 0x64
push ebx
push edi
call fcn.00409170
push ebp
push 0x40000000
push edx
push eax
call fcn.004090c0
push ebp
mov dword [esp + 0x30], edx
mov edx, dword [esp + 0x28]
push 0x64
mov dword [esp + 0x30], eax
mov eax, dword [esp + 0x28]
push edx
push eax
call fcn.00409170
push ebp
push 0x40000000
push edx
push eax
mov dword [esp + 0x50], eax
mov dword [esp + 0x54], edx
call fcn.004090c0
mov ecx, edi
or ecx, ebx
mov esi, eax
mov ebp, edx
je 0x40302f
mov edx, dword [esp + 0x44]
mov eax, dword [esp + 0x40]
push ebx
push edi
push edx
push eax
call fcn.004090c0
mov dword [esp + 0x14], edx
jmp 0x403035
xor eax, eax
mov dword [esp + 0x14], eax
push 0
push 0x64
push ebp
push esi
mov dword [esp + 0x20], eax
call fcn.00408fe0
push 0
mov esi, ecx
mov ecx, dword [esp + 0x30]
push 0x64
mov dword [esp + 0x64], edx
mov edx, dword [esp + 0x30]
push ecx
push edx
mov edi, ebx
mov ebp, eax
call fcn.00408fe0
mov dword [esp + 0x64], edx
mov edx, dword [esp + 0x14]
push edx
mov edx, dword [esp + 0x14]
push edx
mov edx, dword [esp + 0x24]
push edx
mov edx, dword [esp + 0x68]
push edi
mov edi, dword [esp + 0x1084]
push esi
push edx
mov edx, dword [esp + 0x54]
push ebp
push edx
mov edx, dword [esp + 0x1090]
push ebx
push ecx
mov ecx, dword [esp + 0x8c]
push ecx
push eax
mov eax, dword [edx + 0x3c]
push eax
push edi
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x38
lea ecx, [esp + 0x68]
mov eax, edi
mov edx, 0x400
cmp word [eax], 0
je 0x4030c1
add eax, 2
sub edx, 1
jne 0x4030b3
test edx, edx
je 0x4030e6
movzx esi, word [ecx]
mov word [eax], si
add eax, 2
add ecx, 2
test si, si
je 0x4030db
sub edx, 1
jne 0x4030c5
test edx, edx
jne 0x4030e6
mov word [edi + 0x7fe], dx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x105c
ret 8