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

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x5b5bf8
push eax
mov dword fs:[0], esp
sub esp, 0x74
push ebx
push ebp
mov ebp, dword [esp + 0x90]
push esi
mov esi, ecx
push edi
push ebp
lea ecx, [esp + 0x28]
call fcn.0049f010
cmp dword [ebp + 0xe8], 5
jne 0x523473
mov ecx, dword [esp + 0x24]
push 0x29
push 0x2b
mov edx, dword [esp + 0x30]
sub esp, 0x10
mov edi, dword [esp + 0xac]
mov eax, esp
push edi
mov dword [eax], ecx
mov ecx, dword [esp + 0x48]
mov dword [eax + 4], edx
mov edx, dword [esp + 0x4c]
mov dword [eax + 8], ecx
mov ecx, esi
mov dword [eax + 0xc], edx
call fcn.004a6320
push 0x29
mov ecx, esi
call fcn.004a5b70
push eax
push ebp
push edi
mov ecx, esi
call fcn.00529e90
jmp 0x523c95
mov eax, dword [esi]
push ebp
mov ecx, esi
call dword [eax + 0x124]
test eax, eax
je 0x52360f
mov edi, dword [esp + 0x2c]
mov ebx, dword [esp + 0x24]
sub edi, ebx
mov ebx, dword [0x623408]
push 0x10
call ebx
cdq
sub eax, edx
sar eax, 1
cmp edi, eax
jle 0x5234a7
mov eax, edi
jmp 0x5234b0
push 0x10
call ebx
cdq
sub eax, edx
sar eax, 1
mov ecx, dword [esp + 0x24]
mov edx, dword [esp + 0x28]
mov dword [esp + 0x1c], eax
mov eax, dword [esp + 0x30]
mov dword [esp + 0x20], eax
mov eax, dword [ebp + 0xe8]
cmp eax, 2
mov dword [esp + 0x14], ecx
mov dword [esp + 0x18], edx
je 0x5234e5
test eax, eax
je 0x5234e5
cmp eax, 3
je 0x5234e5
cmp eax, 1
jne 0x523556
mov ecx, dword [ebp + 0x1c]
push ecx
call dword [0x62345c]
push eax
call fcn.0058214d
test eax, eax
je 0x523556
mov eax, dword [eax + 0x1c]
lea edx, [esp + 0x44]
push edx
push eax
call dword [0x623448]
lea ecx, [esp + 0x44]
push ecx
mov ecx, ebp
call fcn.0058af78
mov edi, dword [esp + 0x4c]
mov eax, dword [esp + 0x44]
push 0x10
sub edi, eax
call ebx
cdq
sub eax, edx
sar eax, 1
cmp edi, eax
jle 0x52352f
mov eax, edi
jmp 0x523538
push 0x10
call ebx
cdq
sub eax, edx
sar eax, 1
mov ecx, dword [esp + 0x44]
mov edx, dword [esp + 0x28]
mov edi, dword [esp + 0x30]
add eax, ecx
mov dword [esp + 0x14], ecx
mov dword [esp + 0x18], edx
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], edi
mov edi, dword [esp + 0x94]
lea edx, [esp + 0x24]
push edx
lea eax, [esi + 0x470]
push 1
lea ecx, [esp + 0x1c]
push eax
push ecx
push edi
call fcn.0049fdb0
mov ecx, eax
call fcn.004a0360
cmp dword [ebp + 0xe8], 4
jne 0x523c95
push 0x3d
mov ecx, esi
call fcn.004a5b70
mov esi, eax
lea edx, [esp + 0x24]
push esi
push esi
push edx
mov ecx, edi
call fcn.0059a27d
push 0xffffffffffffffff
lea eax, [esp + 0x28]
push 0xffffffffffffffff
push eax
call dword [0x623208]
push esi
lea ecx, [esp + 0x28]
push esi
push ecx
mov ecx, edi
call fcn.0059a27d
mov edx, dword [edi + 4]
mov ebx, dword [sym.imp.GDI32.dll_SetPixel]
push esi
push 2
push 2
push edx
call ebx
mov eax, dword [esp + 0x2c]
mov ecx, dword [edi + 4]
push esi
add eax, 0xfffffffe
push 2
push eax
push ecx
call ebx
mov edx, dword [esp + 0x30]
mov eax, dword [edi + 4]
add edx, 0xfffffffe
push esi
push edx
push 2
push eax
call ebx
mov ecx, dword [esp + 0x30]
mov edx, dword [esp + 0x2c]
mov eax, dword [edi + 4]
add ecx, 0xfffffffe
push esi
add edx, 0xfffffffe
push ecx
push edx
push eax
call ebx
jmp 0x523c95
mov eax, dword [ebp + 0xe8]
test eax, eax
je 0x523a8a
cmp eax, 1
je 0x523a8a
cmp eax, 2
je 0x5238a5
cmp eax, 3
je 0x5238a5
cmp eax, 4
jne 0x523890
mov edx, dword [esi]
push ebp
mov ecx, esi
call dword [edx + 0x13c]
test eax, eax
je 0x523890
push 0x1e
mov ecx, esi
call fcn.004a5b70
mov edi, dword [esp + 0x94]
push eax
lea eax, [esp + 0x28]
mov ecx, edi
push eax
call fcn.0059a207
push 0x3d
mov ecx, esi
call fcn.004a5b70
mov ebx, eax
lea ecx, [esp + 0x24]
push ebx
push ebx
push ecx
mov ecx, edi
call fcn.0059a27d
push 0xffffffffffffffff
lea edx, [esp + 0x28]
push 0xffffffffffffffff
push edx
call dword [0x623208]
push ebx
lea eax, [esp + 0x28]
push ebx
push eax
mov ecx, edi
call fcn.0059a27d
lea ecx, [esi + 0x90]
push ecx
push edi
lea ecx, [esp + 0x6c]
call fcn.0049f3d0
mov eax, dword [edi + 8]
lea edx, [esp + 0x14]
push edx
push 1
push 0x6197d8
push eax
mov dword [esp + 0x9c], 0
call dword [sym.imp.GDI32.dll_GetTextExtentPoint32A]
mov ecx, dword [esp + 0x18]
cmp ecx, 0xf
jge 0x5236e7
mov ecx, 0xf
mov edx, dword [esp + 0x30]
lea eax, [edx - 2]
mov edx, dword [esp + 0x2c]
add edx, 0xfffffffe
mov dword [esp + 0x40], eax
mov dword [esp + 0x10], edx
mov edx, dword [esp + 0x28]
lea ecx, [ecx + edx + 2]
mov edx, dword [esp + 0x24]
mov dword [esp + 0x38], ecx
mov ecx, dword [esp + 0x10]
add edx, 2
mov dword [esp + 0x3c], ecx
mov ecx, ebp
mov dword [esp + 0x34], edx
mov dword [esp + 0x10], 0
call fcn.0049cc50
test eax, eax
jle 0x523810
mov edx, dword [esp + 0x10]
mov ecx, ebp
push edx
call fcn.0049cc60
mov ecx, dword [eax + 0x90]
mov dword [esp + 0x14], eax
test ecx, ecx
je 0x5237f6
mov edx, dword [eax]
push 0
mov ecx, eax
call dword [edx + 0x78]
test eax, eax
je 0x5237f6
mov eax, dword [esp + 0x14]
lea ecx, [eax + 0xbc]
mov edx, dword [eax + 0xbc]
mov dword [esp + 0x44], edx
mov edx, dword [ecx + 4]
mov dword [esp + 0x48], edx
mov edx, dword [ecx + 8]
mov dword [esp + 0x4c], edx
mov edx, dword [esp + 0x48]
mov ecx, dword [ecx + 0xc]
mov dword [esp + 0x50], ecx
mov ecx, dword [esp + 0x38]
cmp edx, ecx
jle 0x5237f6
add eax, 0xac
push 0
mov ecx, eax
push 0
mov edx, dword [ecx]
mov dword [esp + 0x1c], edx
mov eax, dword [ecx + 4]
mov dword [esp + 0x68], eax
lea eax, [esi + 0x490]
mov edx, dword [ecx + 8]
push eax
mov dword [esp + 0x28], edx
mov edx, dword [esp + 0x40]
mov ecx, dword [ecx + 0xc]
mov dword [esp + 0x60], edx
mov edx, dword [esp + 0x48]
mov dword [esp + 0x2c], ecx
mov ecx, dword [esp + 0x44]
mov dword [esp + 0x68], edx
mov dword [esp + 0x64], ecx
lea ecx, [esp + 0x60]
push ecx
push edi
call fcn.0049fdb0
mov ecx, eax
call fcn.004a0360
mov edx, dword [esp + 0x60]
mov dword [esp + 0x38], edx
mov edx, dword [esp + 0x10]
mov ecx, ebp
inc edx
mov dword [esp + 0x10], edx
call fcn.0049cc50
cmp dword [esp + 0x10], eax
jl 0x523733
push 0
add esi, 0x490
push 0
lea eax, [esp + 0x3c]
push esi
push eax
push edi
call fcn.0049fdb0
mov ecx, eax
call fcn.004a0360
mov ecx, dword [edi + 4]
mov esi, dword [sym.imp.GDI32.dll_SetPixel]
push ebx
push 2
push 2
push ecx
call esi
mov edx, dword [esp + 0x2c]
push ebx
push 2
lea eax, [edx - 2]
push eax
mov eax, dword [edi + 4]
push eax
call esi
mov ecx, dword [esp + 0x30]
mov edx, dword [edi + 4]
push ebx
lea eax, [ecx - 2]
push eax
push 2
push edx
call esi
mov eax, dword [esp + 0x30]
mov ecx, dword [esp + 0x2c]
mov edx, dword [edi + 4]
add eax, 0xfffffffe
add ecx, 0xfffffffe
push ebx
push eax
push ecx
push edx
call esi
lea ecx, [esp + 0x64]
mov dword [esp + 0x8c], 0xffffffff
call fcn.0049f430
jmp 0x523c95
mov eax, dword [esp + 0x94]
push ebp
push eax
mov ecx, esi
call fcn.00529fa0
jmp 0x523c95
push 0xf
mov ecx, esi
call fcn.004a5b70
mov edi, dword [esp + 0x94]
lea ecx, [esp + 0x24]
push eax
push ecx
mov ecx, edi
call fcn.0059a207
mov edx, dword [ebp + 0x1c]
push edx
call dword [0x62345c]
push eax
call fcn.0058214d
mov ebx, eax
test ebx, ebx
je 0x5239bd
mov ecx, ebx
call fcn.005850e7
test ah, 0x41
je 0x523908
mov eax, dword [esi + 0x488]
cmp eax, 0xffffffff
jne 0x5238f9
mov eax, dword [esi + 0x484]
push eax
lea eax, [esp + 0x28]
push eax
mov ecx, edi
call fcn.0059a207
jmp 0x523974
push ebx
lea ecx, [esp + 0x18]
call fcn.0049efb0
lea ecx, [esp + 0x14]
push ecx
mov ecx, ebp
call fcn.0058af78
mov ebx, dword [esp + 0x1c]
mov eax, dword [esp + 0x14]
push 0x10
sub ebx, eax
call dword [0x623408]
cdq
sub eax, edx
sar eax, 1
cmp ebx, eax
jle 0x52393d
mov eax, ebx
jmp 0x52394a
push 0x10
call dword [0x623408]
cdq
sub eax, edx
sar eax, 1
mov edx, dword [esp + 0x14]
lea ecx, [esi + 0x470]
add eax, edx
lea edx, [esp + 0x14]
mov dword [esp + 0x1c], eax
lea eax, [esp + 0x24]
push eax
push 1
push ecx
push edx
push edi
call fcn.0049fdb0
mov ecx, eax
call fcn.004a0360
mov eax, dword [esp + 0x28]
mov edx, dword [esp + 0x2c]
lea ecx, [eax + 3]
push ecx
push edx
push eax
mov eax, dword [esp + 0x30]
push eax
mov ecx, edi
call fcn.0058ad80
mov ecx, dword [esp + 0x24]
mov edx, dword [esp + 0x28]
sub esp, 0x10
mov ebx, esp
lea eax, [ecx + 1]
lea ecx, [edx + 3]
mov edx, dword [esp + 0x3c]
mov dword [ebx], eax
mov eax, dword [esp + 0x40]
dec edx
push edi
mov dword [ebx + 4], ecx
mov ecx, esi
mov dword [ebx + 8], edx
mov dword [ebx + 0xc], eax
call fcn.004a0520
mov ecx, dword [esp + 0x28]
mov eax, dword [esp + 0x24]
mov edx, dword [esp + 0x2c]
mov dword [esp + 0x48], ecx
mov ecx, dword [esp + 0x30]
push 1
push 1
mov dword [esp + 0x4c], eax
push 0
mov dword [esp + 0x5c], ecx
mov ecx, dword [ebp + 0xe4]
inc eax
push 1
push 0xffffffffffffffff
mov dword [esp + 0x60], edx
mov dword [esp + 0x58], eax
call fcn.00488b10
cmp eax, 0xffffffff
je 0x523a38
mov ebp, dword [ebp + 0xe4]
test eax, eax
jl 0x523a13
cmp eax, dword [ebp + 0x28]
jge 0x523a13
mov edx, dword [ebp + 0x24]
mov eax, dword [edx + eax*4]
jmp 0x523a15
xor eax, eax
add eax, 0xac
mov ecx, eax
mov edx, dword [ecx]
mov dword [esp + 0x54], edx
mov eax, dword [ecx + 4]
mov dword [esp + 0x58], eax
mov eax, dword [ecx + 8]
inc eax
mov ecx, dword [ecx + 0xc]
mov dword [esp + 0x4c], eax
mov dword [esp + 0x60], ecx
push 0
lea edx, [esi + 0x490]
push 1
lea eax, [esp + 0x4c]
push edx
push eax
push edi
call fcn.0049fdb0
mov ecx, eax
call fcn.004a0360
mov eax, dword [esi + 0x558]
cmp eax, 0xffffffff
jne 0x523a68
mov esi, dword [esi + 0x554]
jmp 0x523a6a
mov esi, eax
mov ecx, dword [esp + 0x30]
mov eax, dword [esp + 0x28]
mov edx, dword [esp + 0x2c]
sub ecx, eax
sub ecx, 7
push esi
push ecx
add eax, 5
push 1
dec edx
push eax
push edx
jmp 0x523c85
push 0xf
mov ecx, esi
call fcn.004a5b70
mov edi, dword [esp + 0x94]
push eax
lea eax, [esp + 0x28]
mov ecx, edi
push eax
call fcn.0059a207
mov ecx, dword [ebp + 0x1c]
push ecx
call dword [0x62345c]
push eax
call fcn.0058214d
test eax, eax
je 0x523b80
push eax
lea ecx, [esp + 0x48]
call fcn.0049efb0
lea edx, [esp + 0x44]
mov ecx, ebp
push edx
call fcn.0058af78
mov ebx, dword [esp + 0x4c]
mov eax, dword [esp + 0x44]
push 0x10
sub ebx, eax
call dword [0x623408]
cdq
sub eax, edx
sar eax, 1
cmp ebx, eax
jle 0x523af4
mov eax, ebx
jmp 0x523b01
push 0x10
call dword [0x623408]
cdq
sub eax, edx
sar eax, 1
mov ecx, dword [esp + 0x44]
lea edx, [esp + 0x24]
add eax, ecx
push edx
mov dword [esp + 0x50], eax
lea eax, [esi + 0x470]
push 1
lea ecx, [esp + 0x4c]
push eax
push ecx
push edi
call fcn.0049fdb0
mov ecx, eax
call fcn.004a0360
mov eax, dword [esp + 0x24]
mov edx, dword [esp + 0x30]
push edx
mov edx, dword [esp + 0x2c]
lea ecx, [eax + 3]
push ecx
push edx
push eax
mov ecx, edi
call fcn.0058ad80
mov eax, dword [esp + 0x24]
mov ecx, dword [esp + 0x28]
mov ebx, dword [esp + 0x30]
add eax, 3
inc ecx
dec ebx
sub esp, 0x10
mov edx, dword [esp + 0x3c]
mov dword [esp + 0x90], ebx
mov ebx, esp
push edi
mov dword [ebx], eax
mov dword [ebx + 4], ecx
mov ecx, esi
mov dword [ebx + 8], edx
mov edx, dword [esp + 0x94]
mov dword [ebx + 0xc], edx
call fcn.004a0520
mov eax, dword [esp + 0x24]
mov ecx, dword [esp + 0x2c]
mov edx, dword [esp + 0x30]
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x28]
push 1
push 1
mov dword [esp + 0x20], eax
push 0
mov dword [esp + 0x28], ecx
mov ecx, dword [ebp + 0xe4]
inc eax
push 1
push 0xffffffffffffffff
mov dword [esp + 0x34], edx
mov dword [esp + 0x2c], eax
call fcn.00488b10
cmp eax, 0xffffffff
je 0x523bf9
mov ebp, dword [ebp + 0xe4]
test eax, eax
jl 0x523bd6
cmp eax, dword [ebp + 0x28]
jge 0x523bd6
mov ecx, dword [ebp + 0x24]
mov eax, dword [ecx + eax*4]
jmp 0x523bd8
xor eax, eax
add eax, 0xac
mov edx, dword [eax]
mov dword [esp + 0x54], edx
mov ecx, dword [eax + 4]
mov dword [esp + 0x58], ecx
mov edx, dword [eax + 8]
mov dword [esp + 0x5c], edx
mov eax, dword [eax + 0xc]
inc eax
mov dword [esp + 0x20], eax
push 0
lea eax, [esi + 0x490]
push 0
lea ecx, [esp + 0x1c]
push eax
push ecx
push edi
call fcn.0049fdb0
mov ecx, eax
call fcn.004a0360
mov eax, dword [esi + 0x4a8]
cmp eax, 0xffffffff
jne 0x523c27
mov eax, dword [esi + 0x4a4]
mov edx, dword [esp + 0x18]
mov ecx, dword [esp + 0x28]
push eax
mov eax, dword [esp + 0x24]
sub edx, eax
sub edx, ecx
mov ecx, dword [esp + 0x34]
lea edx, [edx + ecx - 2]
mov ecx, dword [esp + 0x18]
push edx
mov edx, dword [esp + 0x24]
sub edx, ecx
push edx
push eax
push ecx
mov ecx, edi
call fcn.0059a231
mov eax, dword [esi + 0x558]
cmp eax, 0xffffffff
jne 0x523c68
mov esi, dword [esi + 0x554]
jmp 0x523c6a
mov esi, eax
mov ecx, dword [esp + 0x2c]
mov eax, dword [esp + 0x24]
mov edx, dword [esp + 0x30]
sub ecx, eax
push esi
sub ecx, 7
push 1
dec edx
push ecx
add eax, 5
push edx
push eax
mov ecx, edi
call fcn.0059a231
push 0
mov ecx, edi
call fcn.0058ad40
mov ecx, dword [esp + 0x84]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
pop ebx
add esp, 0x80
ret 8