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

Disassembly:
push 0xffffffffffffffff
push 0x596aed
mov eax, dword fs:[0]
push eax
sub esp, 0x68
push ebx
push ebp
push esi
push edi
mov eax, dword [0x5eb3c0]
xor eax, esp
push eax
lea eax, [esp + 0x7c]
mov dword fs:[0], eax
mov esi, ecx
xor eax, eax
mov dword [esp + 0x84], eax
mov ecx, dword [esi + 0xbc]
mov edx, dword [0x5f7780]
mov dword [esp + 0x2c], ecx
mov dword [esp + 0x48], eax
mov dword [esp + 0x4c], eax
mov dword [esp + 0x50], eax
mov dword [esp + 0x54], eax
mov dword [esp + 0x40], eax
mov dword [esp + 0x44], eax
mov eax, dword [edx + 0xc]
mov ecx, 0x5f7780
xor ebp, ebp
xor edi, edi
call eax
add eax, 0x10
mov dword [esp + 0x24], eax
mov byte [esp + 0x84], 1
mov ecx, dword [esi + 0x4c]
call fcn.004a0d40
mov ecx, dword [esi + 0x14]
mov edx, dword [esi + 0x18]
mov ebx, dword [esi + 0xec]
mov dword [esp + 0x3c], eax
mov eax, dword [esi + 0x1c]
mov dword [esp + 0x48], ecx
mov ecx, dword [esi + 0x20]
mov dword [esp + 0x4c], edx
mov dword [esp + 0x50], eax
mov dword [esp + 0x54], ecx
call fcn.0049fbd0
test eax, eax
mov dword [esp + 0x18], eax
je 0x4aa7d5
mov ecx, eax
mov edx, dword [ecx]
mov edx, dword [edx + 0x3c]
lea eax, [esp + 0x34]
push eax
call edx
mov ebp, dword [eax]
mov edi, dword [eax + 4]
mov ebx, dword [esi + 0xf4]
call fcn.0049fbd0
test eax, eax
mov dword [esp + 0x30], eax
je 0x4aa7f6
mov ecx, eax
mov eax, dword [ecx]
mov eax, dword [eax + 0x3c]
lea edx, [esp + 0x34]
push edx
call eax
mov ebx, dword [esi + 0xf8]
call fcn.0049fbd0
test eax, eax
mov dword [esp + 0x28], eax
je 0x4aa824
mov ecx, eax
mov edx, dword [ecx]
mov edx, dword [edx + 0x3c]
lea eax, [esp + 0x34]
push eax
call edx
mov ecx, dword [eax]
mov edx, dword [eax + 4]
mov dword [esp + 0x40], ecx
mov dword [esp + 0x44], edx
mov eax, dword [esi + 0xe4]
test eax, eax
je 0x4aa830
mov edi, eax
mov eax, dword [esi + 0xe0]
test eax, eax
je 0x4aa83c
mov ebp, eax
mov eax, dword [esi + 0x11c]
sub eax, 0
je 0x4aa85a
sub eax, 1
jne 0x4aa866
mov eax, dword [esi + 0xdc]
add eax, ebp
add dword [esp + 0x48], eax
jmp 0x4aa866
mov ecx, dword [esi + 0xdc]
add ecx, edi
add dword [esp + 0x4c], ecx
mov ebx, dword [esi + 0xf0]
call fcn.0049fbd0
test eax, eax
mov edi, dword [esp + 0x8c]
je 0x4aa8a8
mov ecx, dword [esp + 0x48]
mov ebx, dword [eax]
push 0
sub esp, 0x10
mov edx, esp
mov dword [edx], ecx
mov ecx, dword [esp + 0x60]
mov dword [edx + 4], ecx
mov ecx, dword [esp + 0x64]
mov dword [edx + 8], ecx
mov ecx, dword [esp + 0x68]
mov dword [edx + 0xc], ecx
mov edx, dword [ebx + 0x1c]
push edi
mov ecx, eax
call edx
push 1
push edi
call dword [sym.imp.GDI32.dll_SetBkMode]
mov eax, dword [esi + 0x120]
cmp eax, 0xffffffff
mov ecx, dword [sym.imp.GDI32.dll_SetTextColor]
mov dword [esp + 0x1c], 0xffffffff
jne 0x4aa8de
mov eax, dword [esi + 0x54]
cmp eax, 0xffffffff
jne 0x4aa8de
mov eax, dword [esp + 0x3c]
mov eax, dword [eax + 0xc]
cmp eax, 0xffffffff
je 0x4aa8e6
push eax
push edi
call ecx
mov dword [esp + 0x1c], eax
mov ecx, dword [esp + 0x3c]
mov eax, dword [ecx + 0x20]
test eax, eax
mov dword [esp + 0x20], 0
je 0x4aa905
push eax
push edi
call dword [sym.imp.GDI32.dll_SelectObject]
mov dword [esp + 0x20], eax
mov eax, dword [esi + 0xb4]
xor edx, edx
test eax, eax
je 0x4aa93b
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
je 0x4aaee3
mov ecx, eax
mov ecx, dword [ecx + 8]
test ecx, ecx
mov eax, dword [eax]
je 0x4aa937
cmp dword [ecx + 0xd8], 0
jne 0x4aa937
add edx, 1
test eax, eax
jne 0x4aa911
xor ebp, ebp
cmp dword [esp + 0x2c], ebp
mov dword [esp + 0x34], edx
jle 0x4aace6
mov ebx, dword [esp + 0x28]
nop
test ebp, ebp
jl 0x4aa98d
cmp ebp, dword [esi + 0xbc]
jge 0x4aa98d
jb 0x4aa962
xor eax, eax
jmp 0x4aa979
mov eax, dword [esi + 0xb4]
test eax, eax
je 0x4aa979
test ebp, ebp
jbe 0x4aa979
mov ecx, ebp
sub ecx, 1
mov eax, dword [eax]
jne 0x4aa972
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
je 0x4aaee3
mov eax, dword [eax + 8]
jmp 0x4aa98f
xor eax, eax
cmp dword [eax + 0xd8], 0
jne 0x4aacd9
lea edx, [esp + 0x48]
push edx
push ebp
call fcn.004aaff0
test ebx, ebx
je 0x4aaaf7
mov edx, 1
cmp dword [esp + 0x34], edx
jle 0x4aaaf7
mov eax, dword [esi + 0x11c]
sub dword [esp + 0x34], edx
xor ecx, ecx
sub eax, ecx
mov dword [esp + 0x58], ecx
mov dword [esp + 0x5c], ecx
mov dword [esp + 0x60], ecx
mov dword [esp + 0x64], ecx
je 0x4aaa54
sub eax, edx
jne 0x4aaacb
mov ecx, dword [esp + 0x54]
mov eax, dword [esi + 0xd4]
add eax, ecx
push eax
mov eax, dword [esp + 0x54]
push eax
push ecx
mov ecx, dword [esp + 0x54]
push ecx
lea edx, [esp + 0x68]
push edx
call dword [sym.imp.USER32.dll_SetRect]
mov eax, dword [esp + 0x58]
mov ecx, dword [esp + 0x60]
cmp eax, ecx
jle 0x4aaa1d
mov dword [esp + 0x58], ecx
mov dword [esp + 0x60], eax
mov ecx, dword [esp + 0x5c]
mov eax, dword [esp + 0x64]
cmp ecx, eax
jle 0x4aaa37
mov edx, ecx
mov ecx, eax
mov eax, edx
mov dword [esp + 0x5c], ecx
mov dword [esp + 0x64], eax
sub eax, ecx
sub eax, dword [esp + 0x44]
cdq
sub eax, edx
sar eax, 1
neg eax
push eax
push 0
lea eax, [esp + 0x60]
push eax
call dword [sym.imp.USER32.dll_InflateRect]
jmp 0x4aaacb
mov ecx, dword [esp + 0x50]
mov eax, dword [esi + 0xd4]
mov edx, dword [esp + 0x54]
push edx
add eax, ecx
push eax
mov eax, dword [esp + 0x54]
push eax
push ecx
lea ecx, [esp + 0x68]
push ecx
call dword [sym.imp.USER32.dll_SetRect]
mov ecx, dword [esp + 0x58]
mov eax, dword [esp + 0x60]
cmp ecx, eax
jle 0x4aaa91
mov edx, ecx
mov ecx, eax
mov eax, edx
mov dword [esp + 0x58], ecx
mov dword [esp + 0x60], eax
mov edx, dword [esp + 0x5c]
mov edi, dword [esp + 0x64]
cmp edx, edi
jle 0x4aaaa5
mov dword [esp + 0x5c], edi
mov dword [esp + 0x64], edx
sub eax, ecx
sub eax, dword [esp + 0x40]
push 0
cdq
sub eax, edx
sar eax, 1
neg eax
push eax
lea edx, [esp + 0x60]
push edx
call dword [sym.imp.USER32.dll_InflateRect]
mov edi, dword [esp + 0x8c]
mov ebx, dword [esp + 0x28]
mov ecx, dword [esp + 0x58]
mov edx, dword [ebx]
mov edx, dword [edx + 0x1c]
push 0xffffffffffffffff
sub esp, 0x10
mov eax, esp
mov dword [eax], ecx
mov ecx, dword [esp + 0x70]
mov dword [eax + 4], ecx
mov ecx, dword [esp + 0x74]
mov dword [eax + 8], ecx
mov ecx, dword [esp + 0x78]
mov dword [eax + 0xc], ecx
push edi
mov ecx, ebx
call edx
cmp ebp, dword [esi + 0xd0]
je 0x4aacd9
cmp dword [esi + 0x128], 0
je 0x4aab31
mov ecx, dword [esi + 0x128]
mov eax, dword [ecx]
mov eax, dword [eax + 4]
xor edx, edx
cmp ebp, dword [esi + 0xcc]
sete dl
push edx
push ebp
lea edx, [esp + 0x50]
push edx
push edi
push esi
call eax
test eax, eax
jne 0x4aab70
cmp dword [esp + 0x18], 0
je 0x4aab70
mov ebx, dword [esp + 0x48]
mov ecx, dword [esp + 0x18]
mov edx, dword [ecx]
mov edx, dword [edx + 0x1c]
xor eax, eax
cmp ebp, dword [esi + 0xcc]
sete al
push eax
sub esp, 0x10
mov eax, esp
mov dword [eax], ebx
mov ebx, dword [esp + 0x60]
mov dword [eax + 4], ebx
mov ebx, dword [esp + 0x64]
mov dword [eax + 8], ebx
mov ebx, dword [esp + 0x68]
push edi
mov dword [eax + 0xc], ebx
call edx
cmp dword [esp + 0x30], 0
je 0x4aabe6
mov eax, dword [esp + 0x48]
mov ecx, dword [esp + 0x4c]
mov edx, dword [esp + 0x50]
mov dword [esp + 0x68], eax
mov eax, dword [esp + 0x54]
mov dword [esp + 0x6c], ecx
mov ecx, dword [esi + 0x110]
push ecx
mov dword [esp + 0x78], eax
mov eax, dword [esi + 0x10c]
push eax
lea ecx, [esp + 0x70]
push ecx
mov dword [esp + 0x7c], edx
call dword [sym.imp.USER32.dll_OffsetRect]
mov ebx, dword [esp + 0x68]
mov ecx, dword [esp + 0x30]
mov edx, dword [ecx]
push ebp
sub esp, 0x10
mov eax, esp
mov dword [eax], ebx
mov ebx, dword [esp + 0x80]
mov dword [eax + 4], ebx
mov ebx, dword [esp + 0x84]
mov dword [eax + 8], ebx
mov ebx, dword [esp + 0x88]
mov dword [eax + 0xc], ebx
mov eax, dword [edx + 0x1c]
push edi
call eax
cmp dword [esi + 0x128], 0
je 0x4aac0f
mov ecx, dword [esi + 0x128]
mov edx, dword [ecx]
mov edx, dword [edx]
xor eax, eax
cmp ebp, dword [esi + 0xcc]
sete al
push eax
push ebp
lea eax, [esp + 0x50]
push eax
push edi
push esi
call edx
mov ecx, dword [esi + 0x118]
mov eax, dword [esi + 0x114]
push ecx
push eax
lea eax, [esp + 0x50]
push eax
call dword [sym.imp.USER32.dll_OffsetRect]
test ebp, ebp
jl 0x4aac6b
cmp ebp, dword [esi + 0xbc]
jge 0x4aac6b
jb 0x4aac3a
xor eax, eax
jmp 0x4aac57
mov eax, dword [esi + 0xb4]
test eax, eax
je 0x4aac57
test ebp, ebp
jbe 0x4aac57
mov ecx, ebp
lea ebx, [ebx]
sub ecx, 1
mov eax, dword [eax]
jne 0x4aac50
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
je 0x4aaee3
mov eax, dword [eax + 8]
jmp 0x4aac6d
xor eax, eax
mov edx, dword [eax + 0xd4]
test edx, edx
jne 0x4aac7b
xor eax, eax
jmp 0x4aac8f
mov eax, edx
lea ebx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4aac80
sub eax, ebx
sar eax, 1
mov ebx, eax
push edx
lea eax, [esp + 0x28]
call fcn.00480ff0
mov ecx, dword [esp + 0x48]
mov edx, dword [esp + 0x4c]
sub esp, 0x10
mov eax, esp
mov dword [eax], ecx
mov ecx, dword [esp + 0x60]
mov dword [eax + 4], edx
mov edx, dword [esp + 0x64]
mov dword [eax + 8], ecx
mov dword [eax + 0xc], edx
lea eax, [esp + 0x34]
push eax
lea edx, [esp + 0xa0]
mov ecx, esi
call fcn.004ab110
mov edi, dword [esp + 0x8c]
mov ebx, dword [esp + 0x28]
add ebp, 1
cmp ebp, dword [esp + 0x2c]
jl 0x4aa950
mov ebp, dword [esp + 0x3c]
mov eax, dword [ebp + 0x24]
test eax, eax
je 0x4aad0e
cmp dword [esp + 0x20], 0
jne 0x4aad06
push eax
push edi
call dword [sym.imp.GDI32.dll_SelectObject]
mov dword [esp + 0x20], eax
jmp 0x4aad0e
mov dword [esp + 0x20], 0
cmp dword [ebp + 0x10], 0xffffffff
je 0x4aad2d
mov ecx, dword [esp + 0x1c]
mov ebx, dword [sym.imp.GDI32.dll_SetTextColor]
push ecx
push edi
call ebx
mov eax, dword [ebp + 0x10]
push eax
push edi
call ebx
mov dword [esp + 0x1c], eax
xor edi, edi
cmp dword [esp + 0x2c], edi
jle 0x4aaf7e
mov edx, dword [esp + 0x2c]
lea ecx, [ecx]
test edi, edi
jl 0x4aad7d
cmp edi, dword [esi + 0xbc]
jge 0x4aad7d
jb 0x4aad52
xor eax, eax
jmp 0x4aad69
mov eax, dword [esi + 0xb4]
test eax, eax
je 0x4aad69
test edi, edi
jbe 0x4aad69
mov ecx, edi
sub ecx, 1
mov eax, dword [eax]
jne 0x4aad62
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
je 0x4aaee3
mov eax, dword [eax + 8]
jmp 0x4aad7f
xor eax, eax
cmp dword [eax + 0xd8], 0
jne 0x4aad90
cmp edi, dword [esi + 0xd0]
je 0x4aad9c
add edi, 1
cmp edi, edx
jl 0x4aad40
jmp 0x4aaf7e
lea edx, [esp + 0x48]
push edx
push edi
call fcn.004aaff0
cmp dword [esi + 0x128], 0
mov ebp, dword [esp + 0x8c]
je 0x4aadd2
mov ecx, dword [esi + 0x128]
mov eax, dword [ecx]
mov eax, dword [eax + 4]
push 2
push edi
lea edx, [esp + 0x50]
push edx
push ebp
push esi
call eax
test eax, eax
jne 0x4aae04
mov ecx, dword [esp + 0x18]
test ecx, ecx
je 0x4aae04
mov ebx, dword [esp + 0x48]
mov edx, dword [ecx]
push 2
sub esp, 0x10
mov eax, esp
mov dword [eax], ebx
mov ebx, dword [esp + 0x60]
mov dword [eax + 4], ebx
mov ebx, dword [esp + 0x64]
mov dword [eax + 8], ebx
mov ebx, dword [esp + 0x68]
mov dword [eax + 0xc], ebx
mov eax, dword [edx + 0x1c]
push ebp
call eax
mov ebx, dword [esp + 0x30]
test ebx, ebx
je 0x4aae79
mov ecx, dword [esp + 0x48]
mov eax, dword [esp + 0x50]
mov edx, dword [esp + 0x4c]
mov dword [esp + 0x68], ecx
mov ecx, dword [esp + 0x54]
mov dword [esp + 0x74], ecx
mov ecx, dword [esi + 0x110]
mov dword [esp + 0x70], eax
mov eax, dword [esi + 0x10c]
push ecx
mov dword [esp + 0x70], edx
push eax
lea edx, [esp + 0x70]
push edx
call dword [sym.imp.USER32.dll_OffsetRect]
mov ecx, dword [esp + 0x68]
mov edx, dword [ebx]
mov edx, dword [edx + 0x1c]
push edi
sub esp, 0x10
mov eax, esp
mov dword [eax], ecx
mov ecx, dword [esp + 0x80]
mov dword [eax + 4], ecx
mov ecx, dword [esp + 0x84]
mov dword [eax + 8], ecx
mov ecx, dword [esp + 0x88]
mov dword [eax + 0xc], ecx
push ebp
mov ecx, ebx
call edx
cmp dword [esi + 0x128], 0
je 0x4aae98
mov ecx, dword [esi + 0x128]
mov eax, dword [ecx]
mov eax, dword [eax]
push 2
push edi
lea edx, [esp + 0x50]
push edx
push ebp
push esi
call eax
mov ecx, dword [esi + 0x118]
mov eax, dword [esi + 0x114]
push ecx
push eax
lea ecx, [esp + 0x50]
push ecx
call dword [sym.imp.USER32.dll_OffsetRect]
test edi, edi
jl 0x4aaef2
cmp edi, dword [esi + 0xbc]
jge 0x4aaef2
jb 0x4aaec3
xor eax, eax
jmp 0x4aaed8
mov eax, dword [esi + 0xb4]
test eax, eax
je 0x4aaed8
test edi, edi
jbe 0x4aaed8
sub edi, 1
mov eax, dword [eax]
jne 0x4aaed1
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x4aaeed
push 0x80004005
call fcn.00473d10
mov eax, dword [eax + 8]
jmp 0x4aaef4
xor eax, eax
mov edx, dword [eax + 0xd4]
test edx, edx
jne 0x4aaf02
xor eax, eax
jmp 0x4aaf16
mov eax, edx
lea edi, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4aaf07
sub eax, edi
sar eax, 1
mov ebx, eax
push edx
lea eax, [esp + 0x28]
call fcn.00480ff0
mov eax, dword [esi + 0x124]
xor edi, edi
test eax, eax
je 0x4aaf38
push eax
push ebp
call dword [sym.imp.GDI32.dll_SelectObject]
mov edi, eax
mov edx, dword [esp + 0x48]
mov ecx, dword [esp + 0x4c]
sub esp, 0x10
mov eax, esp
mov dword [eax], edx
mov edx, dword [esp + 0x60]
mov dword [eax + 4], ecx
mov ecx, dword [esp + 0x64]
mov dword [eax + 8], edx
lea edx, [esp + 0x34]
mov dword [eax + 0xc], ecx
push edx
lea edx, [esp + 0xa0]
mov ecx, esi
call fcn.004ab110
test edi, edi
je 0x4aaf7e
mov eax, dword [esp + 0x8c]
push edi
push eax
call dword [sym.imp.GDI32.dll_SelectObject]
mov eax, dword [esp + 0x1c]
cmp eax, 0xffffffff
je 0x4aaf96
mov ecx, dword [esp + 0x8c]
push eax
push ecx
call dword [sym.imp.GDI32.dll_SetTextColor]
mov eax, dword [esp + 0x20]
test eax, eax
je 0x4aafad
mov edx, dword [esp + 0x8c]
push eax
push edx
call dword [sym.imp.GDI32.dll_SelectObject]
mov byte [esp + 0x84], 0
mov eax, dword [esp + 0x24]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4aafd5
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [esp + 0x7c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x74
ret 4