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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4953a1
mov eax, dword fs:[0]
push eax
sub esp, 0x3a4
mov eax, dword [0x4b8670]
xor eax, esp
mov dword [esp + 0x39c], eax
push ebx
push esi
mov eax, dword [0x4b8670]
xor eax, esp
push eax
lea eax, [esp + 0x3b0]
mov dword fs:[0], eax
push 0x448
mov ecx, edi
call fcn.00423427
mov esi, eax
push 0x3ed
mov ecx, edi
mov dword [esp + 0x18], esi
call fcn.00423427
mov ecx, dword [0xefa758]
mov ebx, eax
mov eax, dword [ebp + 8]
mov dword [edi + 0x148], eax
mov edx, dword [ecx]
mov eax, dword [edx + 4]
mov dword [esp + 0x10], ebx
mov dword [esp + 0x18], 0
call eax
mov ecx, dword [ebx + 0x20]
mov ebx, dword [sym.imp.USER32.dll_SendMessageW]
push 0
push 0
push 0x14b
push ecx
call ebx
mov edx, dword [esi + 0x20]
push 0
push 0
push 0x14b
push edx
call ebx
mov eax, dword [edi + 0x148]
call fcn.0041b5c0
mov ecx, dword [eax]
mov dword [edi + 0x14c], ecx
mov edx, dword [eax + 4]
mov dword [edi + 0x150], edx
mov ecx, dword [eax + 8]
mov dword [edi + 0x154], ecx
mov edx, dword [eax + 0xc]
lea esi, [edi + 0x15c]
mov dword [edi + 0x158], edx
mov ebx, dword [esi + 8]
cmp dword [esi + 4], ebx
jbe 0x404d36
call fcn.0043a8ee
mov eax, dword [esi + 4]
cmp eax, dword [esi + 8]
mov dword [esp + 0xc], eax
jbe 0x404d4b
call fcn.0043a8ee
mov eax, dword [esp + 0xc]
push ebx
push esi
push eax
push esi
lea eax, [esp + 0x38]
push eax
mov ebx, esi
call fcn.00407280
xor ebx, ebx
cmp dword [edi + 0x148], ebx
je 0x40531c
mov dword [esp + 0x68], 0x4a9cc8
mov dword [esp + 0x6c], 0x4a9cd0
mov dword [esp + 0x70], 0x4a9cd8
mov dword [esp + 0x74], 0x4a9ce0
mov dword [esp + 0xc], ebx
lea ecx, [ecx]
mov ecx, dword [0xefb0a0]
mov edx, dword [0xefb09c]
push ebx
push ecx
push edx
push 0x398
call fcn.00402920
mov esi, eax
cmp esi, ebx
je 0x404e0f
lea ebx, [esp + 0x1c]
lea eax, [esp + 0x44]
mov dword [esp + 0x1c], 0x4e
call fcn.00406c20
mov ebx, dword [eax]
cmp esi, ebx
mov eax, dword [eax + 4]
mov ecx, dword [esi + 4]
mov dword [esp + 0x24], eax
mov dword [esp + 0x2c], ecx
je 0x404ddd
call fcn.0043a8ee
mov edx, dword [esp + 0x24]
cmp dword [esp + 0x2c], edx
je 0x404e09
test ebx, ebx
jne 0x404df0
call fcn.0043a8ee
mov eax, dword [esp + 0x24]
cmp eax, dword [ebx + 4]
jne 0x404dfe
call fcn.0043a8ee
mov ecx, dword [esp + 0x24]
mov ecx, dword [ecx + 0x10]
xor ebx, ebx
jmp 0x404e11
xor ecx, ecx
xor ebx, ebx
jmp 0x404e11
xor ecx, ecx
lea edx, [esp + 0x4c]
push edx
call fcn.00402cf0
mov dword [esp + 0x3b8], ebx
cmp dword [eax + 0x18], 8
jb 0x404e2d
mov edx, dword [eax + 4]
jmp 0x404e30
lea edx, [eax + 4]
mov eax, edx
mov dword [esp + 0x90], 7
mov dword [esp + 0x8c], ebx
mov word [esp + 0x7c], bx
lea esi, [eax + 2]
lea esp, [esp]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x404e50
sub eax, esi
sar eax, 1
push eax
push edx
lea esi, [esp + 0x80]
call fcn.004079e0
mov byte [esp + 0x3b8], 2
cmp dword [esp + 0x64], 8
jb 0x404e89
mov eax, dword [esp + 0x50]
push eax
call fcn.0041cd43
add esp, 4
mov ecx, dword [esp + 0xc]
mov edx, dword [esp + ecx*4 + 0x68]
mov eax, edx
mov dword [esp + 0x64], 7
mov dword [esp + 0x60], ebx
mov word [esp + 0x50], bx
lea esi, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x404ea7
sub eax, esi
sar eax, 1
push eax
push edx
lea ecx, [esp + 0x80]
call fcn.00407910
mov eax, dword [esp + 0x7c]
mov esi, 8
cmp dword [esp + 0x90], esi
jae 0x404eda
lea eax, [esp + 0x7c]
mov edx, dword [esp + 0x14]
push eax
mov eax, dword [edx + 0x20]
push ebx
push 0x143
push eax
call dword [sym.imp.USER32.dll_SendMessageW]
mov dword [esp + 0x3b8], 0xffffffff
cmp dword [esp + 0x90], esi
jb 0x404f10
mov ecx, dword [esp + 0x7c]
push ecx
call fcn.0041cd43
add esp, 4
mov eax, dword [esp + 0xc]
add eax, 1
cmp eax, 4
mov dword [esp + 0xc], eax
jl 0x404d90
mov eax, dword [edi + 0x148]
mov edx, dword [esp + 0x14]
push ebx
sub eax, 1
push eax
mov eax, dword [edx + 0x20]
push 0x14e
push eax
call dword [sym.imp.USER32.dll_SendMessageW]
xor eax, eax
lea ebx, [esp + 0x68]
lea esi, [edi + 0x15c]
mov dword [esp + 0x68], eax
mov dword [esp + 0x6c], eax
mov dword [esp + 0x70], eax
mov dword [esp + 0x74], eax
call fcn.00406c90
mov ebx, dword [esp + 0x10]
mov ecx, dword [ebx + 0x20]
mov esi, dword [sym.imp.USER32.dll_SendMessageW]
push 0x4a9ce8
push 0
push 0x143
push ecx
call esi
push 1
mov ecx, ebx
call fcn.00423604
push 1
push 0x447
mov ecx, edi
call fcn.00423427
mov ecx, eax
call fcn.00423604
push 1
push 0x448
mov ecx, edi
call fcn.00423427
mov ecx, eax
call fcn.00423604
push 1
push 0x438
mov ecx, edi
call fcn.00423427
mov ecx, eax
call fcn.00423604
push 1
push 0x44d
mov ecx, edi
call fcn.00423427
mov ecx, eax
call fcn.00423604
push 1
push 0x44c
mov ecx, edi
call fcn.00423427
mov ecx, eax
call fcn.00423604
call fcn.0041b6a0
test al, al
mov ecx, edi
je 0x405019
push 0x44c
call fcn.00423427
mov edx, dword [eax + 0x20]
push 0
push 1
push 0xf1
push edx
call esi
xor ecx, ecx
jmp 0x405037
push 0x44d
call fcn.00423427
mov eax, dword [eax + 0x20]
push 0
push 1
push 0xf1
push eax
call esi
mov ecx, 1
mov edx, edi
call fcn.00406160
mov ecx, dword [0xefa758]
mov edx, dword [ecx]
mov eax, dword [edx + 0xc]
xor esi, esi
push 2
mov dword [esp + 0x18], esi
call eax
test eax, eax
jle 0x4052e7
mov ecx, dword [0xefa758]
mov edx, dword [ecx]
mov eax, dword [edx + 0x14]
push esi
push 2
call eax
mov ebx, eax
xor eax, eax
cmp ebx, eax
je 0x4052be
mov dword [esp + 0x90], 7
mov dword [esp + 0x8c], eax
mov word [esp + 0x7c], ax
mov dword [esp + 0x3b8], 3
mov edx, dword [ebx]
mov edx, dword [edx + 0x18]
lea eax, [esp + 0x78]
push eax
mov ecx, ebx
call edx
mov eax, dword [esp + 0x7c]
mov esi, 8
cmp dword [esp + 0x90], esi
jae 0x4050bd
lea eax, [esp + 0x7c]
push 0
push 0
push 0x100
lea ecx, [esp + 0x2b0]
push ecx
push 0xffffffffffffffff
push eax
push 0
push 0
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
cmp dword [esp + 0x90], esi
mov eax, dword [esp + 0x7c]
jae 0x4050ec
lea eax, [esp + 0x7c]
push eax
lea edx, [esp + 0x98]
push 0x4a9cf0
push edx
mov edx, 0x210
call fcn.00401d60
mov ecx, dword [esp + 0x1c]
mov edx, dword [ecx + 0x20]
add esp, 0xc
lea eax, [esp + 0x94]
push eax
push 0
push 0x14c
push edx
call dword [sym.imp.USER32.dll_SendMessageW]
cmp eax, 0xffffffff
je 0x40517a
mov esi, 2
mov edi, edi
push esi
lea eax, [esp + 0x7c]
call fcn.00401a40
push eax
lea eax, [esp + 0x9c]
push str._s____d
push eax
mov edx, 0x210
call fcn.00401d60
mov edx, dword [esp + 0x20]
mov eax, dword [edx + 0x20]
add esp, 0x10
lea ecx, [esp + 0x94]
push ecx
push 0
push 0x14c
push eax
add esi, 1
call dword [sym.imp.USER32.dll_SendMessageW]
cmp eax, 0xffffffff
jne 0x405130
mov edx, dword [esp + 0x10]
mov eax, dword [edx + 0x20]
lea ecx, [esp + 0x94]
push ecx
push 0
push 0x143
push eax
call dword [sym.imp.USER32.dll_SendMessageW]
mov ecx, dword [ebx + 8]
mov edx, dword [ebx + 0xc]
mov dword [esp + 0x20], eax
mov eax, dword [ebx + 0x10]
lea esi, [edi + 0x15c]
mov dword [esp + 0x30], eax
mov eax, dword [esi + 4]
test eax, eax
mov dword [esp + 0x28], ecx
mov ecx, dword [ebx + 0x14]
mov dword [esp + 0x2c], edx
mov dword [esp + 0x34], ecx
jne 0x4051c8
xor edx, edx
jmp 0x4051d0
mov edx, dword [esi + 8]
sub edx, eax
sar edx, 4
test eax, eax
je 0x405213
mov ecx, dword [esi + 0xc]
sub ecx, eax
sar ecx, 4
cmp edx, ecx
jae 0x405213
mov ecx, dword [esp + 0x20]
mov eax, dword [esi + 8]
mov byte [esp + 0x1c], 0
mov edx, dword [esp + 0x1c]
push edx
push ecx
lea edx, [esp + 0x30]
mov ecx, 1
mov dword [esp + 0x14], eax
call fcn.00408460
mov edx, dword [esp + 0x14]
add esp, 8
add edx, 0x10
mov dword [esi + 8], edx
jmp 0x40523a
mov ecx, dword [esi + 8]
cmp eax, ecx
mov dword [esp + 0xc], ecx
jbe 0x405227
call fcn.0043a8ee
mov ecx, dword [esp + 0xc]
push ecx
push esi
lea eax, [esp + 0x30]
push eax
lea ecx, [esp + 0x50]
push ecx
mov eax, esi
call fcn.004071f0
mov eax, dword [ebx + 0xc]
mov edx, dword [ebx + 8]
mov ecx, dword [ebx + 0x10]
mov dword [esp + 0x6c], eax
lea eax, [edi + 0x14c]
push eax
mov dword [esp + 0x6c], edx
mov edx, dword [ebx + 0x14]
lea eax, [esp + 0x6c]
push eax
mov dword [esp + 0x78], ecx
mov dword [esp + 0x7c], edx
call fcn.00401cc0
add esp, 8
test eax, eax
je 0x40527f
call fcn.0041b6a0
test al, al
jne 0x40527f
mov ecx, dword [esp + 0x20]
mov dword [esp + 0x18], ecx
mov dword [esp + 0x3b8], 0xffffffff
cmp dword [esp + 0x90], 8
jb 0x4052a1
mov edx, dword [esp + 0x7c]
push edx
call fcn.0041cd43
add esp, 4
mov esi, dword [esp + 0x14]
xor eax, eax
mov dword [esp + 0x90], 7
mov dword [esp + 0x8c], eax
mov word [esp + 0x7c], ax
mov ecx, dword [0xefa758]
mov eax, dword [ecx]
mov edx, dword [eax + 0xc]
add esi, 1
push 2
mov dword [esp + 0x18], esi
call edx
cmp esi, eax
jl 0x40505b
cmp dword [esp + 0x18], 0
jne 0x40541f
xor ecx, ecx
lea eax, [edi + 0x14c]
mov dword [eax], ecx
mov dword [eax + 4], ecx
mov dword [eax + 8], ecx
mov dword [eax + 0xc], ecx
mov ecx, dword [edi + 0x148]
test ecx, ecx
jle 0x40541f
push 0x4a96dc
push eax
push ecx
call fcn.0041b8c0
add esp, 0xc
jmp 0x40541f
mov eax, dword [0xefb0a0]
mov ecx, dword [0xefb09c]
push ebx
push eax
push ecx
push 0x398
call fcn.00402920
cmp eax, ebx
je 0x405341
push 0x32
call fcn.004028c0
jmp 0x405343
xor eax, eax
lea edx, [esp + 0x28]
push edx
mov ecx, eax
call fcn.00402cf0
cmp dword [eax + 0x18], 8
jb 0x40535a
mov eax, dword [eax + 4]
jmp 0x40535d
add eax, 4
push eax
push ebx
mov ebx, dword [esp + 0x18]
mov eax, dword [ebx + 0x20]
push 0x143
push eax
call dword [sym.imp.USER32.dll_SendMessageW]
cmp dword [esp + 0x40], 8
jb 0x405386
mov ecx, dword [esp + 0x2c]
push ecx
call fcn.0041cd43
add esp, 4
xor eax, eax
lea ecx, [eax + 1]
mov edx, edi
mov dword [esp + 0x40], 7
mov dword [esp + 0x3c], eax
mov word [esp + 0x2c], ax
call fcn.00406160
push 0
push 0x447
mov ecx, edi
call fcn.00423427
mov ecx, eax
call fcn.00423604
push 0
push 0x448
mov ecx, edi
call fcn.00423427
mov ecx, eax
call fcn.00423604
push 0
push 0x438
mov ecx, edi
call fcn.00423427
mov ecx, eax
call fcn.00423604
push 0
push 0x44d
mov ecx, edi
call fcn.00423427
mov ecx, eax
call fcn.00423604
push 0
push 0x44c
mov ecx, edi
call fcn.00423427
mov ecx, eax
call fcn.00423604
push 0
mov ecx, ebx
call fcn.00423604
mov ebx, 0x49cc30
call fcn.00406c90
mov edx, dword [esp + 0x18]
mov eax, dword [esp + 0x10]
mov ecx, dword [eax + 0x20]
push 0
push edx
push 0x14e
push ecx
call dword [sym.imp.USER32.dll_SendMessageW]
mov ecx, edi
call fcn.004056c0
mov ecx, dword [esp + 0x3b0]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov ecx, dword [esp + 0x39c]
xor ecx, esp
call fcn.0043a513
mov esp, ebp
pop ebp
ret 4