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

Disassembly:
push 0xffffffffffffffff
push 0x545c4c
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x48
push ebx
push ebp
mov ebx, ecx
push esi
push edi
mov dword [esp + 0x38], ebx
xor esi, esi
mov dword [esp + 0x60], esi
mov eax, dword [0x591288]
mov dword [esp + 0x2c], esi
mov dword [esp + 0x1c], eax
mov dword [esp + 0x10], eax
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], eax
lea eax, [esp + 0x24]
push 0x20000000
lea ecx, [esp + 0x24]
push eax
lea edx, [esp + 0x18]
push ecx
lea eax, [esp + 0x28]
push edx
mov edx, dword [esp + 0x78]
lea ecx, [esp + 0x60]
push eax
push ecx
push edx
mov byte [esp + 0x7c], 8
call fcn.0043ed30
add esp, 0x1c
test eax, eax
je 0x4afabb
mov eax, dword [esp + 0x6c]
cmp dword [eax - 8], esi
je 0x4af4ce
lea ecx, [esp + 0x6c]
push ecx
lea ecx, [esp + 0x24]
call fcn.0050d536
lea edx, [esp + 0x70]
lea ecx, [esp + 0x24]
push edx
call fcn.0050d536
push esi
push esi
push ecx
lea eax, [esp + 0x28]
mov ecx, esp
mov dword [esp + 0x58], esp
push eax
mov dword [esp + 0x40], esi
call fcn.0050d172
lea edi, [ebx + 0x84]
mov ecx, edi
call fcn.004ae200
mov ebp, eax
test ebp, ebp
jne 0x4af647
test byte [esp + 0x80], 1
jne 0x4afabb
push 0x68
call fcn.0050d138
add esp, 4
mov dword [esp + 0x80], eax
test eax, eax
mov byte [esp + 0x60], 9
je 0x4af532
push 1
push ebx
mov ecx, eax
call fcn.004aa1b0
mov esi, eax
jmp 0x4af534
xor esi, esi
push 2
push ecx
mov ebp, esp
mov dword [esp + 0x88], esp
push ecx
lea edx, [esp + 0x28]
mov ecx, esp
mov dword [esp + 0x8c], esp
push edx
mov byte [esp + 0x70], 8
call fcn.0050d172
push ebp
call fcn.0043e470
add esp, 8
mov ecx, esi
call fcn.004aa370
push ecx
lea eax, [esp + 0x20]
mov ecx, esp
mov dword [esp + 0x84], esp
push eax
call fcn.0050d172
mov ecx, esi
call fcn.004aa3f0
push ecx
mov ebp, esp
mov dword [esp + 0x84], esp
push ecx
mov ecx, esp
mov dword [esp + 0x88], esp
push ecx
mov ecx, esi
call fcn.004aa450
push ebp
mov ecx, ebx
call fcn.004b08b0
mov ecx, esi
call fcn.004ab0d0
push 2
mov ecx, esi
call fcn.0041c7e0
mov edx, dword [esp + 0x20]
mov eax, dword [edx - 8]
test eax, eax
je 0x4af5f9
push ecx
lea eax, [esp + 0x24]
mov ecx, esp
mov dword [esp + 0x84], esp
push eax
call fcn.0050d172
mov ecx, esi
call fcn.004ab400
push ecx
lea edx, [esp + 0x28]
mov ecx, esp
mov dword [esp + 0x84], esp
push edx
call fcn.0050d172
mov ecx, esi
call fcn.004ab490
mov ecx, dword [ebx + 0x70]
push 0
push esi
call fcn.0041cbc0
mov ecx, dword [ebx + 0x70]
push eax
call fcn.0041bc90
mov eax, dword [ebx + 0xa0]
push 0
push 0
push 0x110a
push eax
call dword [sym.imp.USER32.dll_SendMessageA]
push eax
push esi
mov ecx, edi
call fcn.004ae5d0
mov ebp, eax
mov dword [esp + 0x28], esi
mov dword [esp + 0x80], ebp
mov dword [esp + 0x30], 1
mov dword [esp + 0x2c], esi
jmp 0x4af65a
push ebp
mov ecx, edi
call fcn.0050841e
mov dword [esp + 0x28], eax
mov dword [esp + 0x80], ebp
lea ecx, [esp + 0x1c]
push ecx
lea ecx, [esp + 0x1c]
call fcn.0050d172
mov edx, dword [0x591288]
mov dword [esp + 0x14], edx
push 0x2f
lea ecx, [esp + 0x14]
mov byte [esp + 0x64], 0xb
call fcn.0050d91e
mov edi, eax
test edi, edi
jl 0x4af98b
mov eax, dword [esp + 0x10]
mov esi, dword [eax - 8]
cmp edi, esi
jge 0x4af74e
lea ecx, [esp + 0x3c]
push edi
push ecx
lea ecx, [esp + 0x18]
call fcn.00505c45
push eax
lea ecx, [esp + 0x18]
mov byte [esp + 0x64], 0xc
call fcn.0050d536
lea ecx, [esp + 0x3c]
mov byte [esp + 0x60], 0xb
call fcn.0050d3fd
push 0x58dca8
lea ecx, [esp + 0x18]
call fcn.0050d959
test eax, eax
jl 0x4af6ee
lea edx, [esp + 0x10]
lea ecx, [esp + 0x18]
push edx
call fcn.0050d815
lea eax, [esp + 0x10]
push eax
jmp 0x4af761
lea ecx, [edi + 1]
lea edx, [esp + 0x40]
push ecx
push edx
lea ecx, [esp + 0x18]
call fcn.00505c45
push eax
lea ecx, [esp + 0x1c]
mov byte [esp + 0x64], 0xd
call fcn.0050d815
lea ecx, [esp + 0x40]
mov byte [esp + 0x60], 0xb
call fcn.0050d3fd
sub esi, edi
lea eax, [esp + 0x44]
dec esi
lea ecx, [esp + 0x10]
push esi
push eax
call fcn.00505bc9
push eax
lea ecx, [esp + 0x14]
mov byte [esp + 0x64], 0xe
call fcn.0050d536
lea ecx, [esp + 0x44]
mov byte [esp + 0x60], 0xb
call fcn.0050d3fd
jmp 0x4af773
lea ecx, [esp + 0x10]
push ecx
lea ecx, [esp + 0x1c]
call fcn.0050d815
lea edx, [esp + 0x10]
push edx
lea ecx, [esp + 0x18]
call fcn.0050d536
lea ecx, [esp + 0x10]
call fcn.0050d388
mov eax, dword [esp + 0x14]
mov ecx, dword [eax - 8]
test ecx, ecx
je 0x4af95d
mov eax, dword [esp + 0x30]
test eax, eax
jne 0x4af7d5
lea ecx, [esp + 0x48]
push ebp
push ecx
push ecx
lea edx, [esp + 0x24]
mov ecx, esp
mov dword [esp + 0x60], esp
push edx
mov dword [esp + 0x58], 0
call fcn.0050d172
lea esi, [ebx + 0x84]
mov ecx, esi
call fcn.004ae200
mov ebp, eax
test ebp, ebp
je 0x4af7cd
push ebp
mov ecx, esi
call fcn.0050841e
mov dword [esp + 0x28], eax
jmp 0x4af956
mov dword [esp + 0x30], 1
mov eax, dword [esp + 0x10]
mov edi, 1
mov ecx, dword [eax - 8]
test ecx, ecx
je 0x4af871
push 1
push 0x2f
lea ecx, [esp + 0x3c]
call fcn.00505606
lea ecx, [esp + 0x4c]
push 1
push ecx
lea ecx, [esp + 0x20]
mov byte [esp + 0x68], 0xf
call fcn.00505bc9
mov edx, dword [esp + 0x34]
mov eax, dword [eax]
push edx
push eax
call fcn.004ee0f0
add esp, 8
lea ecx, [esp + 0x4c]
test eax, eax
setne bl
call fcn.0050d3fd
lea ecx, [esp + 0x34]
mov byte [esp + 0x60], 0xb
call fcn.0050d3fd
test bl, bl
je 0x4af849
push 0x588690
lea ecx, [esp + 0x1c]
call fcn.0050d7d9
mov ebx, dword [esp + 0x38]
push 0x68
call fcn.0050d138
add esp, 4
mov dword [esp + 0x54], eax
test eax, eax
mov byte [esp + 0x60], 0x10
je 0x4af88e
push edi
push ebx
mov ecx, eax
call fcn.004aa1b0
mov esi, eax
jmp 0x4af890
push 0x58dca4
lea ecx, [esp + 0x18]
call fcn.0050d959
test eax, eax
jle 0x4af7e9
mov edi, 2
jmp 0x4af84d
xor esi, esi
push ecx
lea eax, [esp + 0x1c]
mov ecx, esp
mov dword [esp + 0x58], esp
push eax
mov byte [esp + 0x68], 0xb
mov dword [esp + 0x34], esi
call fcn.0050d172
mov ecx, esi
call fcn.004aa3f0
push ecx
mov ebp, esp
mov dword [esp + 0x58], esp
push ecx
mov ecx, esp
mov dword [esp + 0x5c], esp
push ecx
mov ecx, esi
call fcn.004aa450
push ebp
mov ecx, ebx
call fcn.004b08b0
mov ecx, esi
call fcn.004ab0d0
cmp edi, 2
jne 0x4af8f7
push ecx
lea edx, [esp + 0x18]
mov ecx, esp
mov dword [esp + 0x58], esp
push edx
call fcn.0050d172
mov ecx, esi
call fcn.004aaf30
push 8
jmp 0x4af913
push 0
push ecx
lea eax, [esp + 0x1c]
mov ecx, esp
mov dword [esp + 0x5c], esp
push eax
call fcn.0050d172
mov ecx, esi
call fcn.004aa370
push 5
mov ecx, esi
call fcn.0041c7e0
mov ecx, dword [esp + 0x28]
push esi
push ecx
mov ecx, dword [ebx + 0x70]
call fcn.004ab120
cmp edi, 2
jne 0x4af93c
mov ecx, esi
call fcn.004aade0
test eax, eax
je 0x4afa72
mov edx, dword [esp + 0x80]
lea ecx, [ebx + 0x84]
push edx
push esi
call fcn.004ae5d0
mov ebp, eax
mov dword [esp + 0x28], esi
mov dword [esp + 0x80], ebp
push 0x2f
lea ecx, [esp + 0x14]
call fcn.0050d91e
mov edi, eax
test edi, edi
jge 0x4af68c
mov eax, dword [esp + 0x10]
mov eax, dword [eax - 8]
test eax, eax
je 0x4af97f
mov edi, eax
test edi, edi
jge 0x4af68c
mov esi, dword [esp + 0x2c]
test esi, esi
je 0x4af9c9
push ecx
lea edx, [esp + 0x78]
mov ecx, esp
mov dword [esp + 0x58], esp
push edx
call fcn.0050d172
mov ecx, esi
call fcn.004ab040
push ecx
lea eax, [esp + 0x7c]
mov ecx, esp
mov dword [esp + 0x58], esp
push eax
call fcn.0050d172
mov ecx, esi
call fcn.004aaff0
mov eax, dword [esp + 0x7c]
test eax, eax
je 0x4af9c9
mov dword [eax], esi
lea ecx, [esp + 0x14]
mov byte [esp + 0x60], 0xa
call fcn.0050d3fd
lea ecx, [esp + 0x18]
mov byte [esp + 0x60], 8
call fcn.0050d3fd
lea ecx, [esp + 0x24]
mov byte [esp + 0x60], 7
call fcn.0050d3fd
lea ecx, [esp + 0x20]
mov byte [esp + 0x60], 6
call fcn.0050d3fd
lea ecx, [esp + 0x10]
mov byte [esp + 0x60], 5
call fcn.0050d3fd
lea ecx, [esp + 0x1c]
mov byte [esp + 0x60], 4
call fcn.0050d3fd
lea ecx, [esp + 0x68]
mov byte [esp + 0x60], 3
call fcn.0050d3fd
lea ecx, [esp + 0x6c]
mov byte [esp + 0x60], 2
call fcn.0050d3fd
lea ecx, [esp + 0x70]
mov byte [esp + 0x60], 1
call fcn.0050d3fd
lea ecx, [esp + 0x74]
mov byte [esp + 0x60], 0
call fcn.0050d3fd
lea ecx, [esp + 0x78]
mov dword [esp + 0x60], 0xffffffff
call fcn.0050d3fd
mov eax, dword [esp + 0x80]
jmp 0x4afb3e
test esi, esi
je 0x4af9c9
push ecx
lea edx, [esp + 0x78]
mov ecx, esp
mov dword [esp + 0x58], esp
push edx
call fcn.0050d172
mov ecx, esi
call fcn.004ab040
push ecx
lea eax, [esp + 0x7c]
mov ecx, esp
mov dword [esp + 0x58], esp
push eax
call fcn.0050d172
mov ecx, esi
call fcn.004aaff0
mov eax, dword [esp + 0x7c]
test eax, eax
je 0x4af9c9
jmp 0x4af9c7
lea ecx, [esp + 0x24]
mov byte [esp + 0x60], 7
call fcn.0050d3fd
lea ecx, [esp + 0x20]
mov byte [esp + 0x60], 6
call fcn.0050d3fd
lea ecx, [esp + 0x10]
mov byte [esp + 0x60], 5
call fcn.0050d3fd
lea ecx, [esp + 0x1c]
mov byte [esp + 0x60], 4
call fcn.0050d3fd
lea ecx, [esp + 0x68]
mov byte [esp + 0x60], 3
call fcn.0050d3fd
lea ecx, [esp + 0x6c]
mov byte [esp + 0x60], 2
call fcn.0050d3fd
lea ecx, [esp + 0x70]
mov byte [esp + 0x60], 1
call fcn.0050d3fd
lea ecx, [esp + 0x74]
mov byte [esp + 0x60], 0
call fcn.0050d3fd
lea ecx, [esp + 0x78]
mov dword [esp + 0x60], 0xffffffff
call fcn.0050d3fd
xor eax, eax
mov ecx, dword [esp + 0x58]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
pop ebx
add esp, 0x54
ret 0x1c