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

Disassembly:
push 0xffffffffffffffff
push 0x545798
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xa4
push ebx
push ebp
push esi
push edi
mov edi, dword [esp + 0xc4]
xor eax, eax
cmp edi, 4
mov ebp, ecx
sete al
xor ecx, ecx
cmp edi, 5
sete cl
mov dword [esp + 0x2c], ecx
push 0
mov ecx, ebp
mov dword [esp + 0x50], eax
call fcn.005135e5
mov edx, dword [eax + 0x1c]
mov ebx, dword [sym.imp.USER32.dll_SendMessageA]
push 0
push 0
push 0x1200
push edx
call ebx
cmp edi, eax
jl 0x4ac689
xor eax, eax
jmp 0x4acd73
mov esi, dword [esp + 0xd0]
cmp esi, 0xffffffff
jne 0x4ac6ae
mov eax, dword [ebp + 0x1c]
push 0
push 0
push 0x1004
push eax
call ebx
dec eax
mov dword [esp + 0xd0], eax
mov esi, eax
mov ecx, dword [0x591288]
mov ebx, dword [esp + 0xcc]
mov dword [esp + 0x14], esi
mov dword [esp + 0x1c], ecx
cmp esi, ebx
mov dword [esp + 0xbc], 0
jg 0x4ac6ed
lea ecx, [esp + 0x1c]
mov dword [esp + 0xbc], 0xffffffff
call fcn.0050d3fd
xor eax, eax
jmp 0x4acd73
lea eax, [ebx + esi]
push edi
cdq
sub eax, edx
lea edx, [esp + 0x1c]
sar eax, 1
push eax
push edx
mov ecx, ebp
mov dword [esp + 0x30], eax
call fcn.00508058
push eax
lea ecx, [esp + 0x20]
mov byte [esp + 0xc0], 1
call fcn.0050d536
lea ecx, [esp + 0x18]
mov byte [esp + 0xbc], 0
call fcn.0050d3fd
mov eax, dword [esp + 0x2c]
mov dword [esp + 0x20], 0xffffffff
test eax, eax
je 0x4ac767
mov eax, dword [esp + 0x24]
mov ecx, ebp
push eax
call fcn.00508142
mov ecx, dword [ebp + 0x24078]
push eax
mov dword [esp + 0x28], eax
call fcn.004ab3a0
test eax, eax
je 0x4ac767
mov ecx, dword [esp + 0x24]
call fcn.004aaf90
mov dword [esp + 0x20], eax
mov eax, dword [esp + 0xcc]
mov ecx, dword [esp + 0xd0]
cmp eax, ecx
jg 0x4acd27
lea ecx, [esp + 0x50]
call fcn.0050a59f
mov eax, dword [esp + 0x4c]
mov byte [esp + 0xbc], 2
test eax, eax
je 0x4ac908
mov eax, dword [esp + 0xc8]
test eax, eax
mov eax, dword [esp + 0xd0]
je 0x4ac85c
cmp ebx, eax
jge 0x4ac7fd
push ecx
lea edx, [esp + 0x20]
mov ecx, esp
mov dword [esp + 0x1c], esp
push edx
call fcn.0050d172
push ecx
mov ecx, ebp
mov eax, esp
mov dword [esp + 0x30], esp
push edi
push ebx
push eax
mov byte [esp + 0xd0], 3
call fcn.00508058
mov ecx, ebp
mov byte [esp + 0xc4], 2
call fcn.004ad410
test eax, eax
jge 0x4ac7fd
mov eax, dword [esp + 0xd0]
inc ebx
cmp ebx, eax
jl 0x4ac7b4
cmp esi, dword [esp + 0xcc]
jle 0x4acb10
push ecx
lea edx, [esp + 0x20]
mov ecx, esp
mov dword [esp + 0x2c], esp
push edx
call fcn.0050d172
push ecx
mov ecx, ebp
mov eax, esp
mov dword [esp + 0x20], esp
push edi
push esi
push eax
mov byte [esp + 0xd0], 5
call fcn.00508058
mov ecx, ebp
mov byte [esp + 0xc4], 2
call fcn.004ad410
test eax, eax
jle 0x4acb0c
mov eax, dword [esp + 0xcc]
dec esi
cmp esi, eax
jg 0x4ac80a
jmp 0x4acb0c
cmp ebx, eax
jge 0x4ac8a9
push ecx
lea edx, [esp + 0x20]
mov ecx, esp
mov dword [esp + 0x2c], esp
push edx
call fcn.0050d172
push ecx
mov ecx, ebp
mov eax, esp
mov dword [esp + 0x20], esp
push edi
push ebx
push eax
mov byte [esp + 0xd0], 4
call fcn.00508058
mov ecx, ebp
mov byte [esp + 0xc4], 2
call fcn.004ad410
test eax, eax
jle 0x4ac8a9
mov eax, dword [esp + 0xd0]
inc ebx
cmp ebx, eax
jl 0x4ac860
cmp esi, dword [esp + 0xcc]
jle 0x4acb10
push ecx
lea edx, [esp + 0x20]
mov ecx, esp
mov dword [esp + 0x2c], esp
push edx
call fcn.0050d172
push ecx
mov ecx, ebp
mov eax, esp
mov dword [esp + 0x20], esp
push edi
push esi
push eax
mov byte [esp + 0xd0], 6
call fcn.00508058
mov ecx, ebp
mov byte [esp + 0xc4], 2
call fcn.004ad410
test eax, eax
jge 0x4acb0c
mov eax, dword [esp + 0xcc]
dec esi
cmp esi, eax
jg 0x4ac8b6
jmp 0x4acb0c
mov eax, dword [esp + 0x2c]
test eax, eax
mov eax, dword [esp + 0xc8]
je 0x4ac9ce
test eax, eax
mov eax, dword [esp + 0xd0]
je 0x4ac97a
cmp ebx, eax
jge 0x4ac947
mov ecx, dword [esp + 0x20]
push ecx
push ebx
mov ecx, ebp
call fcn.004ad520
test eax, eax
jge 0x4ac947
mov eax, dword [esp + 0xd0]
inc ebx
cmp ebx, eax
jl 0x4ac92a
cmp esi, dword [esp + 0xcc]
jle 0x4acb10
mov eax, dword [esp + 0x20]
mov ecx, ebp
push eax
push esi
call fcn.004ad520
test eax, eax
jle 0x4acb0c
mov eax, dword [esp + 0xcc]
dec esi
cmp esi, eax
jg 0x4ac954
jmp 0x4acb0c
cmp ebx, eax
jge 0x4ac99b
mov edx, dword [esp + 0x20]
mov ecx, ebp
push edx
push ebx
call fcn.004ad520
test eax, eax
jle 0x4ac99b
mov eax, dword [esp + 0xd0]
inc ebx
cmp ebx, eax
jl 0x4ac97e
cmp esi, dword [esp + 0xcc]
jle 0x4acb10
mov ecx, dword [esp + 0x20]
push ecx
push esi
mov ecx, ebp
call fcn.004ad520
test eax, eax
jge 0x4acb0c
mov eax, dword [esp + 0xcc]
dec esi
cmp esi, eax
jg 0x4ac9a8
jmp 0x4acb0c
test eax, eax
mov eax, dword [esp + 0xd0]
je 0x4aca7b
cmp ebx, eax
jge 0x4aca23
push edi
lea edx, [esp + 0x28]
push ebx
push edx
mov ecx, ebp
call fcn.00508058
mov ecx, dword [esp + 0x1c]
mov eax, dword [eax]
push ecx
push eax
call fcn.004ee0f0
add esp, 8
lea ecx, [esp + 0x24]
test eax, eax
setl byte [esp + 0x13]
call fcn.0050d3fd
mov al, byte [esp + 0x13]
test al, al
je 0x4aca23
mov eax, dword [esp + 0xd0]
inc ebx
cmp ebx, eax
jl 0x4ac9e1
cmp esi, dword [esp + 0xcc]
jle 0x4acb10
push edi
lea edx, [esp + 0x34]
push esi
push edx
mov ecx, ebp
call fcn.00508058
mov ecx, dword [esp + 0x1c]
mov eax, dword [eax]
push ecx
push eax
call fcn.004ee0f0
add esp, 8
lea ecx, [esp + 0x30]
test eax, eax
setg byte [esp + 0x13]
call fcn.0050d3fd
mov al, byte [esp + 0x13]
test al, al
je 0x4acb0c
mov eax, dword [esp + 0xcc]
dec esi
cmp esi, eax
jg 0x4aca30
jmp 0x4acb0c
cmp ebx, eax
jge 0x4acac1
push edi
lea edx, [esp + 0x44]
push ebx
push edx
mov ecx, ebp
call fcn.00508058
mov ecx, dword [esp + 0x1c]
mov eax, dword [eax]
push ecx
push eax
call fcn.004ee0f0
add esp, 8
lea ecx, [esp + 0x40]
test eax, eax
setg byte [esp + 0x13]
call fcn.0050d3fd
mov al, byte [esp + 0x13]
test al, al
je 0x4acac1
mov eax, dword [esp + 0xd0]
inc ebx
cmp ebx, eax
jl 0x4aca7f
cmp esi, dword [esp + 0xcc]
jle 0x4acb10
push edi
lea edx, [esp + 0x40]
push esi
push edx
mov ecx, ebp
call fcn.00508058
mov ecx, dword [esp + 0x1c]
mov eax, dword [eax]
push ecx
push eax
call fcn.004ee0f0
add esp, 8
lea ecx, [esp + 0x3c]
test eax, eax
setl byte [esp + 0x13]
call fcn.0050d3fd
mov al, byte [esp + 0x13]
test al, al
je 0x4acb0c
mov eax, dword [esp + 0xcc]
dec esi
cmp esi, eax
jg 0x4acaca
mov dword [esp + 0x14], esi
cmp ebx, esi
jg 0x4acd07
push edi
lea edx, [esp + 0x48]
push esi
push edx
mov ecx, ebp
call fcn.00508058
mov dword [esp + 0x18], eax
push edi
lea eax, [esp + 0x4c]
push ebx
push eax
mov ecx, ebp
mov byte [esp + 0xc8], 7
call fcn.00508058
mov ecx, dword [esp + 0x18]
mov eax, dword [eax]
mov ecx, dword [ecx]
push ecx
push eax
call fcn.004ee0f0
add esp, 8
lea ecx, [esp + 0x48]
test eax, eax
setne byte [esp + 0x13]
call fcn.0050d3fd
lea ecx, [esp + 0x44]
mov byte [esp + 0xbc], 2
call fcn.0050d3fd
mov al, byte [esp + 0x13]
test al, al
je 0x4acd01
push 0
mov ecx, ebp
call fcn.005135e5
mov edx, dword [eax + 0x1c]
push 0
push 0
push 0x1200
push edx
call dword [sym.imp.USER32.dll_SendMessageA]
mov edi, eax
push 0xffffffffffffffff
push edi
lea ecx, [esp + 0x58]
mov dword [esp + 0x20], edi
call fcn.0050a632
xor esi, esi
test edi, edi
jle 0x4acbec
push esi
lea eax, [esp + 0x38]
push ebx
push eax
mov ecx, ebp
call fcn.00508058
mov ecx, dword [esp + 0x54]
push eax
mov byte [esp + 0xc0], 8
lea ecx, [ecx + esi*4]
call fcn.0050d536
lea ecx, [esp + 0x34]
mov byte [esp + 0xbc], 2
call fcn.0050d3fd
inc esi
cmp esi, edi
jl 0x4acbb3
mov eax, dword [ebp + 0x1c]
mov ecx, 0xa
lea esi, [esp + 0x64]
lea edi, [esp + 0x8c]
lea edx, [esp + 0x64]
mov dword [esp + 0x64], 0xe
mov dword [esp + 0x68], ebx
mov dword [esp + 0x6c], 0
mov dword [esp + 0x74], 0xff0f
push edx
rep movsd dword es:[edi], dword [esi]
mov edi, dword [esp + 0x18]
mov esi, dword [sym.imp.USER32.dll_SendMessageA]
push 0
push 0x1005
push eax
mov dword [esp + 0xa0], edi
call esi
mov edx, dword [ebp + 0x1c]
lea ecx, [esp + 0x8c]
push ecx
push 0
push 0x1005
push edx
call esi
mov eax, dword [esp + 0x18]
xor esi, esi
test eax, eax
jle 0x4acc98
push esi
lea eax, [esp + 0x3c]
push edi
push eax
mov ecx, ebp
call fcn.00508058
mov eax, dword [eax]
mov ecx, ebp
push eax
push esi
push ebx
mov byte [esp + 0xc8], 9
call fcn.0050802d
lea ecx, [esp + 0x38]
mov byte [esp + 0xbc], 2
call fcn.0050d3fd
mov eax, dword [esp + 0x18]
inc esi
cmp esi, eax
jl 0x4acc5c
mov edx, dword [ebp + 0x1c]
lea ecx, [esp + 0x8c]
push ecx
push 0
push 0x1006
push edx
mov dword [esp + 0xa0], ebx
call dword [sym.imp.USER32.dll_SendMessageA]
mov eax, dword [esp + 0x18]
xor esi, esi
test eax, eax
jle 0x4accdc
mov eax, dword [esp + 0x54]
mov ecx, ebp
mov eax, dword [eax + esi*4]
push eax
push esi
push edi
call fcn.0050802d
mov eax, dword [esp + 0x18]
inc esi
cmp esi, eax
jl 0x4accc2
mov edx, dword [ebp + 0x1c]
lea ecx, [esp + 0x64]
push ecx
push 0
push 0x1006
push edx
mov dword [esp + 0x78], edi
call dword [sym.imp.USER32.dll_SendMessageA]
mov edi, dword [esp + 0xc4]
mov esi, dword [esp + 0x14]
inc ebx
dec esi
mov dword [esp + 0x14], esi
lea ecx, [esp + 0x50]
mov byte [esp + 0xbc], 0
call fcn.0050a5d2
cmp ebx, esi
jle 0x4ac77d
mov eax, dword [esp + 0xcc]
cmp eax, esi
jge 0x4acd3d
push esi
push eax
mov eax, dword [esp + 0xd0]
mov ecx, ebp
push eax
push edi
call fcn.004ac620
mov eax, dword [esp + 0xd0]
cmp ebx, eax
jge 0x4acd5a
mov ecx, dword [esp + 0xc8]
push eax
push ebx
push ecx
push edi
mov ecx, ebp
call fcn.004ac620
lea ecx, [esp + 0x1c]
mov dword [esp + 0xbc], 0xffffffff
call fcn.0050d3fd
mov eax, 1
mov ecx, dword [esp + 0xb4]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
pop ebx
add esp, 0xb0
ret 0x10