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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x495981
mov eax, dword fs:[0]
push eax
sub esp, 0x3a4
mov eax, dword [0x4b9668]
xor eax, esp
mov dword [esp + 0x39c], eax
push ebx
push esi
mov eax, dword [0x4b9668]
xor eax, esp
push eax
lea eax, [esp + 0x3b0]
mov dword fs:[0], eax
push 0x448
mov ecx, edi
call fcn.0042352f
mov esi, eax
push 0x3ed
mov ecx, edi
mov dword [esp + 0x18], esi
call fcn.0042352f
mov ecx, dword [0xefb778]
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.0041b750
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 0x404ca6
call fcn.0043ab1d
mov eax, dword [esi + 4]
cmp eax, dword [esi + 8]
mov dword [esp + 0xc], eax
jbe 0x404cbb
call fcn.0043ab1d
mov eax, dword [esp + 0xc]
push ebx
push esi
push eax
push esi
lea eax, [esp + 0x38]
push eax
mov ebx, esi
call fcn.004071e0
xor ebx, ebx
cmp dword [edi + 0x148], ebx
je 0x40528c
mov dword [esp + 0x68], 0x4aaca8
mov dword [esp + 0x6c], 0x4aacb0
mov dword [esp + 0x70], 0x4aacb8
mov dword [esp + 0x74], 0x4aacc0
mov dword [esp + 0xc], ebx
lea ecx, [ecx]
mov ecx, dword [0xefc0c0]
mov edx, dword [0xefc0bc]
push ebx
push ecx
push edx
push 0x398
call fcn.004028c0
mov esi, eax
cmp esi, ebx
je 0x404d7f
lea ebx, [esp + 0x1c]
lea eax, [esp + 0x44]
mov dword [esp + 0x1c], 0x4e
call fcn.00406b80
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 0x404d4d
call fcn.0043ab1d
mov edx, dword [esp + 0x24]
cmp dword [esp + 0x2c], edx
je 0x404d79
test ebx, ebx
jne 0x404d60
call fcn.0043ab1d
mov eax, dword [esp + 0x24]
cmp eax, dword [ebx + 4]
jne 0x404d6e
call fcn.0043ab1d
mov ecx, dword [esp + 0x24]
mov ecx, dword [ecx + 0x10]
xor ebx, ebx
jmp 0x404d81
xor ecx, ecx
xor ebx, ebx
jmp 0x404d81
xor ecx, ecx
lea edx, [esp + 0x4c]
push edx
call fcn.00402ca0
mov dword [esp + 0x3b8], ebx
cmp dword [eax + 0x18], 8
jb 0x404d9d
mov edx, dword [eax + 4]
jmp 0x404da0
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 0x404dc0
sub eax, esi
sar eax, 1
push eax
push edx
lea esi, [esp + 0x80]
call fcn.00407a40
mov byte [esp + 0x3b8], 2
cmp dword [esp + 0x64], 8
jb 0x404df9
mov eax, dword [esp + 0x50]
push eax
call fcn.0041d0c9
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 0x404e17
sub eax, esi
sar eax, 1
push eax
push edx
lea ecx, [esp + 0x80]
call fcn.00407970
mov eax, dword [esp + 0x7c]
mov esi, 8
cmp dword [esp + 0x90], esi
jae 0x404e4a
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 0x404e80
mov ecx, dword [esp + 0x7c]
push ecx
call fcn.0041d0c9
add esp, 4
mov eax, dword [esp + 0xc]
add eax, 1
cmp eax, 4
mov dword [esp + 0xc], eax
jl 0x404d00
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.00406bf0
mov ebx, dword [esp + 0x10]
mov ecx, dword [ebx + 0x20]
mov esi, dword [sym.imp.USER32.dll_SendMessageW]
push 0x4aacc8
push 0
push 0x143
push ecx
call esi
push 1
mov ecx, ebx
call fcn.0042370c
push 1
push 0x447
mov ecx, edi
call fcn.0042352f
mov ecx, eax
call fcn.0042370c
push 1
push 0x448
mov ecx, edi
call fcn.0042352f
mov ecx, eax
call fcn.0042370c
push 1
push 0x438
mov ecx, edi
call fcn.0042352f
mov ecx, eax
call fcn.0042370c
push 1
push 0x44d
mov ecx, edi
call fcn.0042352f
mov ecx, eax
call fcn.0042370c
push 1
push 0x44c
mov ecx, edi
call fcn.0042352f
mov ecx, eax
call fcn.0042370c
call fcn.0041b830
test al, al
mov ecx, edi
je 0x404f89
push 0x44c
call fcn.0042352f
mov edx, dword [eax + 0x20]
push 0
push 1
push 0xf1
push edx
call esi
xor ecx, ecx
jmp 0x404fa7
push 0x44d
call fcn.0042352f
mov eax, dword [eax + 0x20]
push 0
push 1
push 0xf1
push eax
call esi
mov ecx, 1
mov edx, edi
call fcn.00406130
mov ecx, dword [0xefb778]
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 0x405257
mov ecx, dword [0xefb778]
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 0x40522e
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 0x40502d
lea eax, [esp + 0x7c]
push 0
push 0
push pe_nt_image_headers32
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 0x40505c
lea eax, [esp + 0x7c]
push eax
lea edx, [esp + 0x98]
push 0x4aacd0
push edx
mov edx, 0x210
call fcn.00401d20
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 0x4050ea
mov esi, 2
mov edi, edi
push esi
lea eax, [esp + 0x7c]
call fcn.00401a00
push eax
lea eax, [esp + 0x9c]
push str._s____d
push eax
mov edx, 0x210
call fcn.00401d20
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 0x4050a0
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 0x405138
xor edx, edx
jmp 0x405140
mov edx, dword [esi + 8]
sub edx, eax
sar edx, 4
test eax, eax
je 0x405183
mov ecx, dword [esi + 0xc]
sub ecx, eax
sar ecx, 4
cmp edx, ecx
jae 0x405183
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.004084f0
mov edx, dword [esp + 0x14]
add esp, 8
add edx, 0x10
mov dword [esi + 8], edx
jmp 0x4051aa
mov ecx, dword [esi + 8]
cmp eax, ecx
mov dword [esp + 0xc], ecx
jbe 0x405197
call fcn.0043ab1d
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.00407150
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.00401c80
add esp, 8
test eax, eax
je 0x4051ef
call fcn.0041b830
test al, al
jne 0x4051ef
mov ecx, dword [esp + 0x20]
mov dword [esp + 0x18], ecx
mov dword [esp + 0x3b8], 0xffffffff
cmp dword [esp + 0x90], 8
jb 0x405211
mov edx, dword [esp + 0x7c]
push edx
call fcn.0041d0c9
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 [0xefb778]
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 0x404fcb
cmp dword [esp + 0x18], 0
jne 0x40538f
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 0x40538f
push 0x4aa6bc
push eax
push ecx
call fcn.0041ba50
add esp, 0xc
jmp 0x40538f
mov eax, dword [0xefc0c0]
mov ecx, dword [0xefc0bc]
push ebx
push eax
push ecx
push 0x398
call fcn.004028c0
cmp eax, ebx
je 0x4052b1
push 0x32
call fcn.00402860
jmp 0x4052b3
xor eax, eax
lea edx, [esp + 0x28]
push edx
mov ecx, eax
call fcn.00402ca0
cmp dword [eax + 0x18], 8
jb 0x4052ca
mov eax, dword [eax + 4]
jmp 0x4052cd
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 0x4052f6
mov ecx, dword [esp + 0x2c]
push ecx
call fcn.0041d0c9
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.00406130
push 0
push 0x447
mov ecx, edi
call fcn.0042352f
mov ecx, eax
call fcn.0042370c
push 0
push 0x448
mov ecx, edi
call fcn.0042352f
mov ecx, eax
call fcn.0042370c
push 0
push 0x438
mov ecx, edi
call fcn.0042352f
mov ecx, eax
call fcn.0042370c
push 0
push 0x44d
mov ecx, edi
call fcn.0042352f
mov ecx, eax
call fcn.0042370c
push 0
push 0x44c
mov ecx, edi
call fcn.0042352f
mov ecx, eax
call fcn.0042370c
push 0
mov ecx, ebx
call fcn.0042370c
mov ebx, 0x49dc18
call fcn.00406bf0
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.00405610
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.0043a54e
mov esp, ebp
pop ebp
ret 4