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

Disassembly:
sub esp, 0xa0c
push ebx
mov ebx, dword [sym.imp.USER32.dll_GetDlgItem]
push ebp
push esi
mov ebp, 0xd1
mov esi, ecx
push ebp
push dword [esi + 4]
call ebx
push eax
mov ecx, esi
call fcn.59018864
test eax, eax
je 0x5905c9bb
push 0xd2
push dword [esi + 4]
call ebx
push eax
mov ecx, esi
call fcn.59018864
test eax, eax
je 0x5905c9bb
test byte [esi + 0x7c], 1
push edi
mov edi, 0x4bd
je 0x5905c3f3
push edi
push 1
push ebp
push dword [esi + 4]
call fcn.59018864
test eax, eax
jne 0x5905c9ba
test byte [esi + 0x7c], 2
je 0x5905c411
push edi
push 1
push 0xd2
push dword [esi + 4]
call fcn.59018864
test eax, eax
jne 0x5905c9ba
test byte [esi + 0x7d], 0x20
je 0x5905c42f
push edi
push 0
push 0xf8
push dword [esi + 4]
call fcn.59018864
test eax, eax
jne 0x5905c9ba
test byte [esi + 0x7d], 0x40
je 0x5905c44d
push edi
push 0
push 0xf7
push dword [esi + 4]
call fcn.59018864
test eax, eax
jne 0x5905c9ba
test byte [esi + 0x7c], 4
je 0x5905c46b
push edi
push 0
push 0xd3
push dword [esi + 4]
call fcn.59018864
test eax, eax
jne 0x5905c9ba
test byte [esi + 0x7c], 8
mov ebp, 0x400
je 0x5905c48a
push edi
push 0
push ebp
push dword [esi + 4]
call fcn.59018864
test eax, eax
jne 0x5905c9ba
test byte [esi + 0x7d], 0x10
je 0x5905c4a8
push edi
push 0
push 0xfa
push dword [esi + 4]
call fcn.59018864
test eax, eax
jne 0x5905c9ba
test byte [esi + 0x7c], 0x10
mov edi, 0x402
je 0x5905c4d0
push 0x1a4
push dword [esi + 4]
call ebx
lea ecx, [esi + 0x54]
push ecx
push edi
lea ecx, [esp + 0x220]
push ecx
push eax
call fcn.5905b0de
test dword [esi + 0x7c], ebp
je 0x5905c4e6
lea eax, [esi + 0x48]
push eax
push 0x3f1
push dword [esi + 4]
call fcn.5905b145
test byte [esi + 0x7e], 2
je 0x5905c4fd
lea eax, [esi + 0x78]
push eax
push 0x3f7
push dword [esi + 4]
call fcn.5905b145
test byte [esi + 0x7c], 1
je 0x5905c514
lea eax, [esi + 0x30]
push eax
push 0xd1
push dword [esi + 4]
call fcn.59018864
test byte [esi + 0x7c], 2
je 0x5905c52b
lea eax, [esi + 0x34]
push eax
push 0xd2
push dword [esi + 4]
call fcn.59018864
test byte [esi + 0x7d], 0x20
je 0x5905c542
lea eax, [esi + 0x6c]
push eax
push 0xf8
push dword [esi + 4]
call fcn.59018864
test byte [esi + 0x7d], 0x40
je 0x5905c559
lea eax, [esi + 0x68]
push eax
push 0xf7
push dword [esi + 4]
call fcn.59018864
test byte [esi + 0x7c], 0x20
je 0x5905c573
push 0x3f3
push dword [esi + 4]
call ebx
lea ecx, [esi + 0x44]
push ecx
push eax
call fcn.59018864
test byte [esi + 0x7c], 4
je 0x5905c58a
lea eax, [esi + 0x3c]
push eax
push 0xd3
push dword [esi + 4]
call fcn.59018864
test byte [esi + 0x7c], 8
je 0x5905c59d
lea eax, [esi + 0x40]
push eax
push ebp
push dword [esi + 4]
call fcn.59018864
test byte [esi + 0x7d], 0x10
je 0x5905c5b4
lea eax, [esi + 0x64]
push eax
push 0xfa
push dword [esi + 4]
call fcn.59018864
test byte [esi + 0x7d], 8
je 0x5905c5dd
push 0x3f2
push dword [esi + 4]
call ebx
push 0
push 0
push 0xf0
push eax
call dword [sym.imp.vsansi.dll_SendMessageW]
dec eax
neg eax
sbb eax, eax
inc eax
mov dword [esi + 0x4c], eax
test byte [esi + 0x7c], 0x40
je 0x5905c600
push 0x3e8
push dword [esi + 4]
call ebx
lea ecx, [esi + 0x50]
push ecx
push edi
lea ecx, [esp + 0x220]
push ecx
push eax
call fcn.5905b0de
test byte [esi + 0x7c], 0x80
je 0x5905c623
push 0x3ec
push dword [esi + 4]
call ebx
lea ecx, [esi + 0x58]
push ecx
push edi
lea ecx, [esp + 0x220]
push ecx
push eax
call fcn.5905b0de
test byte [esi + 0x7d], 1
je 0x5905c642
push edi
push dword [esi + 4]
call ebx
lea ecx, [esi + 0x5c]
push ecx
push edi
lea ecx, [esp + 0x220]
push ecx
push eax
call fcn.5905b0de
test byte [esi + 0x7d], 2
je 0x5905c665
push 0x404
push dword [esi + 4]
call ebx
lea ecx, [esi + 0x60]
push ecx
push edi
lea ecx, [esp + 0x220]
push ecx
push eax
call fcn.5905b0de
test byte [esi + 0x7d], 0x80
je 0x5905c688
push 0xda
push dword [esi + 4]
call ebx
lea ecx, [esi + 0x70]
push ecx
push edi
lea ecx, [esp + 0x220]
push ecx
push eax
call fcn.5905b0de
test byte [esi + 0x7e], 1
je 0x5905c6ab
push 0x3f5
push dword [esi + 4]
call ebx
lea ecx, [esi + 0x74]
push ecx
push edi
lea ecx, [esp + 0x220]
push ecx
push eax
call fcn.5905b0de
lea ecx, [esi + 0x48]
xor ebx, ebx
cmp dword [ecx], ebx
je 0x5905c6bb
call fcn.59019436
mov ebx, eax
lea ecx, [esi + 0x54]
cmp dword [ecx], 0
je 0x5905c6cc
call fcn.59019436
mov edi, eax
jmp 0x5905c6ce
xor edi, edi
lea ecx, [esi + 0x78]
cmp dword [ecx], 0
je 0x5905c6dd
call fcn.59019436
jmp 0x5905c6df
xor eax, eax
add eax, edi
add eax, ebx
lea eax, [eax + eax + 0x20a]
push eax
call sub.MSVCR70.dll_void____cdecl_operator_new___unsigned_int_
mov edi, dword [sym.imp.vsansi.dll_wsprintfW]
mov ebp, dword [sym.imp.MSVCR70.dll_wcscat]
mov ebx, eax
and word [ebx], 0
test byte [esi + 0x7c], 4
pop ecx
je 0x5905c74b
mov eax, dword [esi + 0x3c]
cmp eax, 0xffffffff
je 0x5905c74b
mov cx, word [esi + 0x44]
cmp cx, 0xa
jne 0x5905c72d
push eax
lea eax, [esp + 0x14]
push 0x5900a280
push eax
call edi
add esp, 0xc
jmp 0x5905c741
movzx ecx, cx
push ecx
push eax
lea eax, [esp + 0x18]
push 0x5900a264
push eax
call edi
add esp, 0x10
lea eax, [esp + 0x10]
push eax
push ebx
call ebp
pop ecx
pop ecx
test byte [esi + 0x7c], 8
je 0x5905c771
mov eax, dword [esi + 0x40]
cmp eax, 0xffffffff
je 0x5905c771
push eax
lea eax, [esp + 0x14]
push 0x5900a248
push eax
call edi
lea eax, [esp + 0x1c]
push eax
push ebx
call ebp
add esp, 0x14
test byte [esi + 0x7c], 0x10
je 0x5905c797
cmp dword [esi + 0x54], 0
je 0x5905c797
push dword [esi + 0x54]
lea eax, [esp + 0x14]
push 0x5900a224
push eax
call edi
lea eax, [esp + 0x1c]
push eax
push ebx
call ebp
add esp, 0x14
test byte [esi + 0x7c], 0x40
je 0x5905c7c3
lea ecx, [esi + 0x50]
call fcn.59019436
test eax, eax
jbe 0x5905c7c3
push dword [esi + 0x50]
lea eax, [esp + 0x14]
push 0x5900a208
push eax
call edi
lea eax, [esp + 0x1c]
push eax
push ebx
call ebp
add esp, 0x14
test byte [esi + 0x7c], 0x80
je 0x5905c7ef
lea ecx, [esi + 0x58]
call fcn.59019436
test eax, eax
jbe 0x5905c7ef
push dword [esi + 0x58]
lea eax, [esp + 0x14]
push 0x5900a1e4
push eax
call edi
lea eax, [esp + 0x1c]
push eax
push ebx
call ebp
add esp, 0x14
test byte [esi + 0x7d], 1
je 0x5905c81b
lea ecx, [esi + 0x5c]
call fcn.59019436
test eax, eax
jbe 0x5905c81b
push dword [esi + 0x5c]
lea eax, [esp + 0x14]
push 0x5900a1b4
push eax
call edi
lea eax, [esp + 0x1c]
push eax
push ebx
call ebp
add esp, 0x14
test byte [esi + 0x7d], 2
je 0x5905c847
lea ecx, [esi + 0x60]
call fcn.59019436
test eax, eax
jbe 0x5905c847
push dword [esi + 0x60]
lea eax, [esp + 0x14]
push 0x5900a188
push eax
call edi
lea eax, [esp + 0x1c]
push eax
push ebx
call ebp
add esp, 0x14
test byte [esi + 0x7d], 4
je 0x5905c86d
cmp dword [esi + 0x48], 0
je 0x5905c86d
push dword [esi + 0x48]
lea eax, [esp + 0x14]
push 0x5900a170
push eax
call edi
lea eax, [esp + 0x1c]
push eax
push ebx
call ebp
add esp, 0x14
test byte [esi + 0x7d], 0x10
je 0x5905c893
mov eax, dword [esi + 0x64]
cmp eax, 0xffffffff
je 0x5905c893
push eax
lea eax, [esp + 0x14]
push 0x5900a154
push eax
call edi
lea eax, [esp + 0x1c]
push eax
push ebx
call ebp
add esp, 0x14
test byte [esi + 0x7d], 0x20
je 0x5905c8b9
mov eax, dword [esi + 0x6c]
cmp eax, 0xffffffff
je 0x5905c8b9
push eax
lea eax, [esp + 0x14]
push 0x5900a130
push eax
call edi
lea eax, [esp + 0x1c]
push eax
push ebx
call ebp
add esp, 0x14
test byte [esi + 0x7d], 0x40
je 0x5905c8df
mov eax, dword [esi + 0x68]
cmp eax, 0xffffffff
je 0x5905c8df
push eax
lea eax, [esp + 0x14]
push 0x5900a10c
push eax
call edi
lea eax, [esp + 0x1c]
push eax
push ebx
call ebp
add esp, 0x14
push ebx
call dword [sym.imp.MSVCR70.dll_wcslen]
test eax, eax
pop ecx
jbe 0x5905c8f4
push ebx
lea ecx, [esi + 0x28]
call fcn.5901940d
and word [ebx], 0
test byte [esi + 0x7d], 0x80
je 0x5905c924
lea ecx, [esi + 0x70]
call fcn.59019436
test eax, eax
jbe 0x5905c924
push dword [esi + 0x70]
lea eax, [esp + 0x14]
push 0x5900a208
push eax
call edi
lea eax, [esp + 0x1c]
push eax
push ebx
call ebp
add esp, 0x14
test byte [esi + 0x7e], 1
je 0x5905c950
lea ecx, [esi + 0x74]
call fcn.59019436
test eax, eax
jbe 0x5905c950
push dword [esi + 0x74]
lea eax, [esp + 0x14]
push 0x5900a1e4
push eax
call edi
lea eax, [esp + 0x1c]
push eax
push ebx
call ebp
add esp, 0x14
test byte [esi + 0x7e], 2
je 0x5905c976
cmp dword [esi + 0x78], 0
je 0x5905c976
push dword [esi + 0x78]
lea eax, [esp + 0x14]
push 0x5900a170
push eax
call edi
lea eax, [esp + 0x1c]
push eax
push ebx
call ebp
add esp, 0x14
test byte [esi + 0x7d], 8
je 0x5905c98c
cmp dword [esi + 0x4c], 0
jne 0x5905c98c
push 0x5900a0fc
push ebx
call ebp
pop ecx
pop ecx
push ebx
call dword [sym.imp.MSVCR70.dll_wcslen]
test eax, eax
pop ecx
jbe 0x5905c9a1
push ebx
lea ecx, [esi + 0x2c]
call fcn.5901940d
push ebx
call sub.MSVCR70.dll_void___cdecl_operator_delete___void__
movzx eax, word [esp + 0xa28]
pop ecx
push eax
push dword [esi + 4]
call dword [sym.imp.USER32.dll_EndDialog]
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0xa0c
ret 0x10