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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4a0731
mov eax, dword fs:[0]
push eax
sub esp, 0x3b0
mov eax, dword [0x4de6d0]
xor eax, esp
mov dword [esp + 0x3a8], eax
push ebx
push esi
push edi
mov eax, dword [0x4de6d0]
xor eax, esp
push eax
lea eax, [esp + 0x3c0]
mov dword fs:[0], eax
mov esi, ecx
push 0x448
mov dword [esp + 0x24], esi
call fcn.0042642e
mov ebx, eax
push 0x3ed
mov ecx, esi
mov dword [esp + 0x28], ebx
call fcn.0042642e
mov ecx, dword [0xf40c68]
mov edi, eax
mov eax, dword [ebp + 8]
mov dword [esi + 0x148], eax
mov edx, dword [ecx]
mov eax, dword [edx + 4]
mov dword [esp + 0x1c], edi
mov dword [esp + 0x28], 0
call eax
mov ecx, dword [edi + 0x20]
push 0
push 0
push 0x14b
push ecx
call dword [sym.imp.USER32.dll_SendMessageW]
mov edx, dword [ebx + 0x20]
push 0
push 0
push 0x14b
push edx
call dword [sym.imp.USER32.dll_SendMessageW]
mov eax, dword [esi + 0x148]
call fcn.0041bc60
mov edx, dword [eax]
mov dword [esi + 0x14c], edx
mov edx, dword [eax + 4]
lea ecx, [esi + 0x14c]
mov dword [ecx + 4], edx
mov edx, dword [eax + 8]
mov dword [ecx + 8], edx
mov eax, dword [eax + 0xc]
mov dword [ecx + 0xc], eax
mov ebx, dword [esi + 0x16c]
lea eax, [esi + 0x15c]
mov dword [esp + 0x34], ecx
mov dword [esp + 0x18], eax
cmp dword [eax + 0xc], ebx
jbe 0x404d79
call fcn.0043c3e7
mov eax, dword [esp + 0x18]
mov edx, dword [eax + 0xc]
mov ecx, dword [eax]
mov dword [esp + 0x2c], ecx
mov dword [esp + 0x14], edx
cmp edx, dword [eax + 0x10]
jbe 0x404d98
call fcn.0043c3e7
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 0x14]
mov ecx, dword [eax]
push ebx
mov ebx, dword [esp + 0x30]
push ebx
push edx
push ecx
lea edx, [esp + 0x3c]
push edx
mov ebx, eax
call fcn.00407380
xor ebx, ebx
cmp dword [esi + 0x148], ebx
je 0x405386
mov dword [esp + 0x78], 0x4ce860
mov dword [esp + 0x7c], 0x4ce868
mov dword [esp + 0x80], 0x4ce870
mov dword [esp + 0x84], 0x4ce878
mov dword [esp + 0x14], ebx
jmp 0x404df0
mov eax, dword [0xf415d8]
mov ecx, dword [0xf415d4]
push ebx
push eax
push ecx
push 0x398
call fcn.00402920
cmp eax, ebx
je 0x404e15
push 0x4e
call fcn.004028b0
jmp 0x404e17
xor eax, eax
lea edx, [esp + 0x38]
push edx
mov ecx, eax
call fcn.00402d80
mov dword [esp + 0x3c8], ebx
cmp dword [eax + 0x18], 8
jb 0x404e35
mov eax, dword [eax + 4]
jmp 0x404e38
add eax, 4
xor ecx, ecx
mov word [esp + 0x8c], cx
mov edi, 7
mov ecx, eax
mov dword [esp + 0xa0], edi
mov dword [esp + 0x9c], ebx
lea esi, [ecx + 2]
lea ebx, [ebx]
mov dx, word [ecx]
add ecx, 2
cmp dx, bx
jne 0x404e60
sub ecx, esi
sar ecx, 1
push ecx
lea esi, [esp + 0x8c]
call fcn.00407730
mov byte [esp + 0x3c8], 2
cmp dword [esp + 0x50], 8
jb 0x404e98
mov edx, dword [esp + 0x3c]
push edx
call fcn.0041d512
add esp, 4
xor eax, eax
mov dword [esp + 0x50], edi
mov edi, dword [esp + 0x14]
mov word [esp + 0x3c], ax
mov eax, dword [esp + edi*4 + 0x78]
mov ecx, eax
mov dword [esp + 0x4c], ebx
lea esi, [ecx + 2]
mov dx, word [ecx]
add ecx, 2
cmp dx, bx
jne 0x404eb4
sub ecx, esi
sar ecx, 1
push ecx
lea ecx, [esp + 0x8c]
call fcn.00407650
mov eax, dword [esp + 0x8c]
mov esi, 8
cmp dword [esp + 0xa0], esi
jae 0x404eec
lea eax, [esp + 0x8c]
mov ecx, dword [esp + 0x24]
mov edx, dword [ecx + 0x20]
push eax
push ebx
push 0x143
push edx
call dword [sym.imp.USER32.dll_SendMessageW]
mov dword [esp + 0x3c8], 0xffffffff
cmp dword [esp + 0xa0], esi
jb 0x404f25
mov eax, dword [esp + 0x8c]
push eax
call fcn.0041d512
add esp, 4
inc edi
cmp edi, 4
mov dword [esp + 0x14], edi
jl 0x404df0
mov esi, dword [esp + 0x20]
mov eax, dword [esi + 0x148]
mov ecx, dword [esp + 0x24]
mov edx, dword [ecx + 0x20]
push ebx
dec eax
push eax
push 0x14e
push edx
call dword [sym.imp.USER32.dll_SendMessageW]
mov edi, dword [esp + 0x18]
xor eax, eax
lea ebx, [esp + 0x78]
mov dword [esp + 0x78], eax
mov dword [esp + 0x7c], eax
mov dword [esp + 0x80], eax
mov dword [esp + 0x84], eax
call fcn.00406d50
mov ebx, dword [esp + 0x1c]
mov eax, dword [ebx + 0x20]
mov edi, dword [sym.imp.USER32.dll_SendMessageW]
push 0x4ce880
push 0
push 0x143
push eax
call edi
push 1
mov ecx, ebx
call fcn.0042662a
push 1
push 0x447
mov ecx, esi
call fcn.0042642e
mov ecx, eax
call fcn.0042662a
push 1
push 0x448
mov ecx, esi
call fcn.0042642e
mov ecx, eax
call fcn.0042662a
push 1
push 0x438
mov ecx, esi
call fcn.0042642e
mov ecx, eax
call fcn.0042662a
push 1
push 0x44d
mov ecx, esi
call fcn.0042642e
mov ecx, eax
call fcn.0042662a
push 1
push 0x44c
mov ecx, esi
call fcn.0042642e
mov ecx, eax
call fcn.0042662a
call fcn.0041bd30
mov ecx, esi
test al, al
je 0x40502e
push 0x44c
call fcn.0042642e
mov ecx, dword [eax + 0x20]
push 0
push 1
push 0xf1
push ecx
call edi
xor ecx, ecx
jmp 0x40504c
push 0x44d
call fcn.0042642e
mov edx, dword [eax + 0x20]
push 0
push 1
push 0xf1
push edx
call edi
mov ecx, 1
mov edx, esi
call fcn.004061e0
mov ecx, dword [0xf40c68]
mov eax, dword [ecx]
mov edx, dword [eax + 0xc]
push 2
mov dword [esp + 0x18], 0
call edx
test eax, eax
jle 0x405312
mov ecx, dword [0xf40c68]
mov edx, dword [esp + 0x14]
mov eax, dword [ecx]
mov eax, dword [eax + 0x14]
push edx
push 2
call eax
mov ebx, eax
test ebx, ebx
je 0x4052e7
xor ecx, ecx
mov dword [esp + 0xa0], 7
mov dword [esp + 0x9c], 0
mov word [esp + 0x8c], cx
mov dword [esp + 0x3c8], 3
mov edx, dword [ebx]
mov edx, dword [edx + 0x18]
lea eax, [esp + 0x88]
push eax
mov ecx, ebx
call edx
mov eax, dword [esp + 0x8c]
mov esi, 8
cmp dword [esp + 0xa0], esi
jae 0x4050e8
lea eax, [esp + 0x8c]
push 0
push 0
push 0x100
lea ecx, [esp + 0x2c0]
push ecx
push 0xffffffffffffffff
push eax
push 0
push 0
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov eax, dword [esp + 0x8c]
cmp dword [esp + 0xa0], esi
jae 0x40511d
lea eax, [esp + 0x8c]
push eax
lea edx, [esp + 0xa8]
push 0x4ce888
push edx
mov edx, 0x210
call fcn.004086f0
mov ecx, dword [esp + 0x28]
mov edx, dword [ecx + 0x20]
add esp, 0xc
lea eax, [esp + 0xa4]
push eax
push 0
push 0x14c
push edx
call edi
cmp eax, 0xffffffff
je 0x4051a7
mov esi, 2
jmp 0x405160
push esi
lea eax, [esp + 0x8c]
call fcn.004019f0
push eax
lea eax, [esp + 0xac]
push str._s____d
push eax
mov edx, 0x210
call fcn.004086f0
mov edx, dword [esp + 0x2c]
mov eax, dword [edx + 0x20]
add esp, 0x10
lea ecx, [esp + 0xa4]
push ecx
push 0
push 0x14c
push eax
inc esi
call edi
cmp eax, 0xffffffff
jne 0x405160
mov edx, dword [esp + 0x1c]
mov eax, dword [edx + 0x20]
lea ecx, [esp + 0xa4]
push ecx
push 0
push 0x143
push eax
call edi
mov edx, dword [ebx + 0xc]
mov ecx, dword [ebx + 8]
mov dword [esp + 0x2c], eax
mov eax, dword [ebx + 0x10]
mov dword [esp + 0x7c], edx
mov edx, dword [esp + 0x18]
mov dword [esp + 0x80], eax
mov eax, dword [edx + 0xc]
mov dword [esp + 0x78], ecx
mov ecx, dword [ebx + 0x14]
mov dword [esp + 0x84], ecx
test eax, eax
jne 0x4051f5
xor ecx, ecx
jmp 0x4051fd
mov ecx, dword [edx + 0x14]
sub ecx, eax
sar ecx, 4
mov esi, dword [edx + 0x10]
mov edx, esi
sub edx, eax
sar edx, 4
cmp edx, ecx
jae 0x40523c
mov ecx, dword [esp + 0x2c]
mov byte [esp + 0x24], 0
mov eax, dword [esp + 0x24]
push eax
push ecx
lea edx, [esp + 0x80]
mov ecx, 1
mov eax, esi
call fcn.00408690
mov edx, dword [esp + 0x20]
add esp, 8
add esi, 0x10
mov dword [edx + 0x10], esi
jmp 0x40525f
cmp eax, esi
jbe 0x405245
call fcn.0043c3e7
mov eax, dword [esp + 0x18]
mov ecx, dword [eax]
push esi
push ecx
lea ecx, [esp + 0x80]
push ecx
lea edx, [esp + 0x7c]
push edx
call fcn.004072d0
mov ecx, dword [ebx + 0xc]
mov edx, dword [ebx + 0x10]
mov eax, dword [ebx + 8]
mov dword [esp + 0x3c], ecx
mov ecx, dword [esp + 0x34]
mov dword [esp + 0x40], edx
mov dword [esp + 0x38], eax
mov eax, dword [ebx + 0x14]
push ecx
lea edx, [esp + 0x3c]
push edx
mov dword [esp + 0x4c], eax
call fcn.00401c90
add esp, 8
test eax, eax
je 0x4052a2
call fcn.0041bd30
test al, al
jne 0x4052a2
mov eax, dword [esp + 0x2c]
mov dword [esp + 0x28], eax
mov dword [esp + 0x3c8], 0xffffffff
cmp dword [esp + 0xa0], 8
jb 0x4052c7
mov ecx, dword [esp + 0x8c]
push ecx
call fcn.0041d512
add esp, 4
xor edx, edx
mov dword [esp + 0xa0], 7
mov dword [esp + 0x9c], 0
mov word [esp + 0x8c], dx
mov ecx, dword [0xf40c68]
mov esi, dword [esp + 0x14]
mov eax, dword [ecx]
mov edx, dword [eax + 0xc]
inc esi
push 2
mov dword [esp + 0x18], esi
call edx
cmp esi, eax
jl 0x405072
cmp dword [esp + 0x28], 0
jne 0x40533b
mov esi, dword [esp + 0x20]
mov ebx, dword [esp + 0x34]
xor eax, eax
mov dword [ebx], eax
mov dword [ebx + 4], eax
mov dword [ebx + 8], eax
mov dword [ebx + 0xc], eax
mov esi, dword [esi + 0x148]
test esi, esi
jle 0x40533b
push 0x4ce274
push esi
call fcn.0041bf50
add esp, 8
mov esi, dword [esp + 0x20]
mov eax, dword [esp + 0x28]
mov ecx, dword [esp + 0x1c]
mov edx, dword [ecx + 0x20]
push 0
push eax
push 0x14e
push edx
call dword [sym.imp.USER32.dll_SendMessageW]
mov ecx, esi
call fcn.004056f0
mov ecx, dword [esp + 0x3c0]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x3a8]
xor ecx, esp
call fcn.0043ba5f
mov esp, ebp
pop ebp
ret 4
mov eax, dword [0xf415d8]
mov ecx, dword [0xf415d4]
push ebx
push eax
push ecx
push 0x398
call fcn.00402920
cmp eax, ebx
je 0x4053ab
push 0x32
call fcn.004028b0
jmp 0x4053ad
xor eax, eax
lea edx, [esp + 0x54]
push edx
mov ecx, eax
call fcn.00402d80
mov ebx, 8
cmp dword [eax + 0x18], ebx
jb 0x4053c8
mov eax, dword [eax + 4]
jmp 0x4053cb
add eax, 4
push eax
mov eax, dword [edi + 0x20]
push 0
push 0x143
push eax
call dword [sym.imp.USER32.dll_SendMessageW]
cmp dword [esp + 0x6c], ebx
jb 0x4053f0
mov ecx, dword [esp + 0x58]
push ecx
call fcn.0041d512
add esp, 4
xor edx, edx
mov word [esp + 0x58], dx
lea ecx, [edx + 1]
mov edx, esi
mov dword [esp + 0x6c], 7
mov dword [esp + 0x68], 0
call fcn.004061e0
push 0
push 0x447
mov ecx, esi
call fcn.0042642e
mov ecx, eax
call fcn.0042662a
push 0
push 0x448
mov ecx, esi
call fcn.0042642e
mov ecx, eax
call fcn.0042662a
push 0
push 0x438
mov ecx, esi
call fcn.0042642e
mov ecx, eax
call fcn.0042662a
push 0
push 0x44d
mov ecx, esi
call fcn.0042642e
mov ecx, eax
call fcn.0042662a
push 0
push 0x44c
mov ecx, esi
call fcn.0042642e
mov ecx, eax
call fcn.0042662a
push 0
mov ecx, edi
call fcn.0042662a
mov edi, dword [esp + 0x18]
mov ebx, 0x4a8de4
call fcn.00406d50
jmp 0x40533f