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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
mov eax, 0x2184
call fcn.005d9990
mov eax, dword [ebp + 0x10]
test eax, eax
push ebx
push esi
push edi
jne 0x52b031
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov esi, dword [ebp + 0xc]
mov edx, dword [esi + 0x12c4]
lea ebx, [ebx]
cmp eax, edx
je 0x52b059
mov ecx, dword [eax + 0x44]
test ecx, ecx
je 0x52b059
mov edi, dword [ecx + 8]
cmp edi, dword [eax + 8]
jne 0x52b059
mov eax, ecx
test eax, eax
jne 0x52b040
mov edx, dword [esi + 0x12f0]
xor ecx, ecx
cmp eax, edx
mov edx, dword [eax]
sete cl
mov edi, eax
mov dword [esp + 0x24], edi
lea ebx, [esp + 0x1128]
mov dword [esp + 0x68], ecx
lea esp, [esp]
mov cl, byte [edx]
inc edx
mov byte [ebx], cl
inc ebx
test cl, cl
jne 0x52b080
lea ecx, [eax + 0x40]
mov dword [esp + 0x1c], ecx
mov ecx, dword [ecx]
test ecx, ecx
je 0x52b14b
jmp 0x52b0a4
mov edi, dword [esp + 0x24]
mov esi, dword [ebp + 0xc]
mov edx, dword [eax + 8]
cmp edx, dword [ecx + 8]
jne 0x52b14b
mov eax, ecx
mov ecx, dword [eax + 0x10]
test ecx, ecx
mov edx, dword [eax]
jle 0x52b0d8
cmp byte [edx], 0x20
jne 0x52b0ce
test ecx, ecx
jle 0x52b0ce
mov bl, byte [edx + 1]
inc edx
dec ecx
cmp bl, 0x20
je 0x52b0c0
cmp byte [edx], 0
jne 0x52b0d8
mov edx, 0x5f4858
lea ecx, [esp + 0x1128]
lea esi, [ecx + 1]
mov bl, byte [ecx]
inc ecx
test bl, bl
jne 0x52b0e2
sub ecx, esi
mov esi, ecx
mov ecx, edx
lea edi, [ecx + 1]
mov bl, byte [ecx]
inc ecx
test bl, bl
jne 0x52b0f2
sub ecx, edi
add ecx, esi
cmp ecx, 0x1036
ja 0x52b144
mov ecx, edx
mov esi, edx
lea esp, [esp]
mov dl, byte [ecx]
inc ecx
test dl, dl
jne 0x52b110
sub ecx, esi
lea edi, [esp + 0x1128]
mov edx, ecx
dec edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x52b123
mov ecx, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [eax + 0x40]
test ecx, ecx
jne 0x52b09d
mov edi, dword [esp + 0x24]
mov esi, dword [ebp + 0xc]
lea ecx, [esp + 0x1128]
lea ebx, [ecx + 1]
mov dl, byte [ecx]
inc ecx
test dl, dl
jne 0x52b155
sub ecx, ebx
mov ebx, ecx
xor ecx, ecx
cmp ebx, ecx
jg 0x52b17c
mov ecx, dword [ebp + 0x14]
mov dword [eax + 0x14], ecx
mov edx, dword [esi + 0x1898]
mov dword [eax + 0x18], edx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [esp + 0x1c]
mov eax, dword [eax]
cmp eax, ecx
je 0x52b1bd
mov edx, dword [edi + 8]
cmp edx, dword [eax + 8]
jne 0x52b1bd
push eax
mov eax, dword [esi + 0x12c4]
push eax
call fcn.004e8a00
mov edx, dword [esi + 0x1304]
mov ecx, dword [esp + 0x24]
add esp, 8
dec edx
mov dword [esi + 0x12c4], eax
mov dword [esi + 0x1304], edx
mov eax, dword [ecx]
xor ecx, ecx
test eax, eax
jne 0x52b186
mov edx, dword [esi + 0x1304]
mov eax, dword [0x6870c4]
mov dword [esp + 0x78], edx
mov edx, dword [0x6870cc]
mov dword [esp + 0x84], eax
mov eax, dword [0x6870d0]
mov dword [esp + 0x54], edx
mov edx, dword [0x6870f0]
mov dword [esp + 0x58], eax
mov eax, dword [edi + 8]
mov dword [0x6870c4], eax
mov dword [esp + 0x60], edx
mov edx, dword [esi + 0x12c4]
mov dword [esi + 0x12c4], ecx
mov eax, dword [edi + 0xc]
mov dword [0x6870cc], eax
mov eax, dword [edi + 0x10]
cmp eax, 0x400
mov dword [esp + 0x70], edx
mov dword [0x6870d0], eax
mov edx, dword [edi + 0x20]
mov dword [esp + 0x3c], edx
mov edx, dword [edi + 4]
mov dword [0x6870f0], edx
mov dword [esp + 0x44], ecx
mov dword [esp + 0x30], ecx
mov dword [esp + 0x50], ecx
mov dword [esp + 0x4c], ecx
mov dword [esp + 0x2c], ecx
lea ecx, [esp + 0x1128]
lea edx, [esp + ebx + 0x1128]
mov dword [esp + 0x18], ecx
mov dword [esp + 0x1c], edx
jl 0x52b263
mov dword [0x6870d0], 0x400
mov eax, dword [esi + 0x1754]
mov edi, dword [ebp + 8]
push eax
push edi
call dword [sym.imp.GDI32.dll_SelectObject]
mov dword [esp + 0x40], eax
mov eax, dword [esi + 0x214c]
xor ebx, ebx
cmp eax, ebx
je 0x52b28c
mov dword [esp + 0x20], ebx
xor eax, eax
jmp 0x52b2c2
cmp dword [0x61b5c4], ebx
jne 0x52b29c
cmp dword [esi + 0x18a4], ebx
je 0x52b2b9
lea ecx, [esp + 0x1128]
push ecx
call fcn.005868a0
add esp, 4
cmp eax, 2
mov dword [esp + 0x20], 1
je 0x52b2bd
mov dword [esp + 0x20], ebx
mov eax, dword [0x693624]
cmp eax, ebx
mov dword [esp + 0x34], eax
mov dword [esp + 0x48], 0xffffffff
je 0x52b2e6
mov edx, dword [esi + 0x1894]
push edx
push edi
call fcn.0049cd10
add esp, 8
mov dword [esp + 0x48], eax
lea eax, [esp + 0x88]
push eax
push edi
call dword [sym.imp.GDI32.dll_GetTextMetricsA]
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0xa8]
lea edx, [esp + 0x1128]
cmp edx, eax
mov dword [esp + 0x5c], ecx
mov dword [esp + 0x64], ebx
mov dword [esp + 0x80], ebx
mov dword [esp + 0x74], ebx
mov dword [esp + 0x6c], ebx
jae 0x52b7f4
jmp 0x52b330
lea eax, [esp + 0xc0]
push 0x1068
push eax
call fcn.004232e0
mov eax, dword [esp + 0x34]
xor ebx, ebx
add esp, 8
cmp eax, ebx
je 0x52b37c
mov edx, dword [0x6870d0]
cmp edx, ebx
jle 0x52b37c
mov ecx, edx
mov esi, ecx
shr ecx, 2
mov eax, 0x20202020
lea edi, [esp + 0xc0]
rep stosd dword es:[edi], eax
mov ecx, esi
and ecx, 3
rep stosb byte es:[edi], al
mov byte [esp + edx + 0xc0], bl
mov ecx, dword [esp + 0x18]
push ecx
lea edx, [esp + 0xc4]
push 0x1068
push edx
call fcn.004255c0
lea eax, [esp + 0xcc]
add esp, 0xc
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x52b3a0
mov esi, dword [0x6870cc]
sub eax, edx
cmp esi, ebx
mov edi, eax
mov dword [esp + 0x28], edi
mov dword [esp + 0x10], esi
mov dword [esp + 0x14], ebx
mov dword [esp + 0x7c], ebx
mov dword [esp + 0x38], ebx
jg 0x52b4a0
mov eax, dword [ebp + 0xc]
mov ecx, dword [eax + 0x1754]
push ebx
push ecx
mov ecx, dword [eax + 0x1894]
lea edx, [eax + 0x1758]
push edx
mov edx, dword [eax + 0x188c]
push ecx
mov ecx, dword [eax + 0x1890]
push edx
push ecx
mov ecx, dword [eax + 0x1314]
lea edx, [eax + 0x189c]
push edx
push ecx
push 1
lea edx, [esp + 0x34]
push edx
lea ecx, [esp + 0x6c]
push ecx
lea edx, [esp + 0x6c]
push edx
push eax
lea eax, [esp + 0xa0]
push eax
mov eax, dword [ebp + 0x14]
lea ecx, [esp + 0x88]
push ecx
lea edx, [esp + 0xb0]
push edx
mov edx, dword [ebp + 8]
push eax
lea ecx, [esp + 0xa0]
push ecx
push edx
lea eax, [esp + 0xcc]
push eax
lea ecx, [esp + 0xb4]
push ecx
lea edx, [esp + 0x84]
push edx
lea eax, [esp + 0xa4]
push eax
lea ecx, [esp + 0x70]
push ecx
lea edx, [esp + 0xdc]
push edx
lea eax, [esp + 0x9c]
push eax
mov eax, dword [esp + 0x88]
lea ecx, [esp + 0x9c]
push ecx
lea edx, [esp + 0x12c]
push edx
push eax
lea ecx, [esp + 0x9c]
push ecx
call fcn.0052a2f0
mov esi, dword [esp + 0x88]
add esp, 0x78
cmp esi, edi
jg 0x52b4a6
jl 0x52b4b3
mov edx, dword [esp + 0x1c]
mov dword [esp + 0x18], edx
jmp 0x52b7b0
cmp esi, 1
jge 0x52b4bd
mov esi, 1
dec esi
mov eax, esi
cdq
and edx, 3
add eax, edx
sar eax, 2
mov ebx, esi
sub ebx, eax
cmp esi, ebx
mov eax, dword [esp + 0x30]
mov dword [esp + 0x38], esi
mov dword [esp + 0x10], eax
jl 0x52b586
mov al, byte [esp + esi + 0xc0]
cmp al, 0x20
je 0x52b586
cmp al, 9
je 0x52b586
mov eax, dword [esp + 0x20]
xor edi, edi
test eax, eax
je 0x52b541
lea ecx, [esp + 0xc0]
push esi
push ecx
call fcn.005867a0
add esp, 8
test eax, eax
je 0x52b51e
mov edi, 1
jg 0x52b57d
cmp eax, 0xffffffff
je 0x52b57d
cmp eax, 0xfffffffe
je 0x52b57d
test edi, edi
je 0x52b541
lea edx, [esp + 0xc0]
push esi
push edx
call fcn.005867a0
add esp, 8
test eax, eax
jne 0x52b564
mov eax, dword [esp + 0x34]
test eax, eax
je 0x52b564
lea eax, [esp + 0xc0]
push esi
push eax
call fcn.005dd489
add esp, 8
cmp eax, 1
je 0x52b57d
cmp eax, 2
je 0x52b57d
cmp byte [esp + esi + 0xc0], 2
jne 0x52b57d
mov eax, dword [esp + 0x10]
xor ecx, ecx
test eax, eax
sete cl
mov dword [esp + 0x10], ecx
dec esi
cmp esi, ebx
jge 0x52b4e1
test esi, esi
jge 0x52b58c
xor esi, esi
cmp esi, ebx
jg 0x52b596
mov esi, dword [esp + 0x38]
jmp 0x52b5ac
mov eax, dword [esp + 0x10]
cmp dword [esp + 0x30], eax
je 0x52b5ac
mov dword [esp + 0x30], eax
mov dword [esp + 0x4c], 1
test esi, esi
mov dword [esp + 0x10], esi
jl 0x52b6ac
lea ecx, [esi - 5]
mov eax, esi
lea ecx, [ecx]
cmp eax, ecx
jl 0x52b6ac
mov eax, dword [esp + 0x10]
cmp byte [esp + eax + 0xc0], 3
je 0x52b5e2
dec eax
mov dword [esp + 0x10], eax
jns 0x52b5c0
jmp 0x52b6ac
mov ebx, dword [esp + 0x10]
mov al, byte [esp + ebx + 0xc1]
test al, al
lea ebx, [esp + ebx + 0xc0]
je 0x52b68d
movzx edx, al
push edx
call fcn.005daff5
add esp, 4
test eax, eax
je 0x52b68d
mov al, byte [ebx + 2]
test al, al
je 0x52b636
movzx eax, al
push eax
call fcn.005daff5
add esp, 4
test eax, eax
je 0x52b636
mov dword [esp + 0x14], 2
mov edi, 1
jmp 0x52b640
mov dword [esp + 0x14], 1
xor edi, edi
cmp byte [edi + ebx + 2], 0x2c
jne 0x52b695
mov al, byte [edi + ebx + 3]
test al, al
je 0x52b695
movzx ecx, al
push ecx
call fcn.005daff5
add esp, 4
test eax, eax
je 0x52b695
mov ecx, dword [esp + 0x14]
mov bl, byte [edi + ebx + 4]
inc ecx
test bl, bl
mov dword [esp + 0x14], ecx
je 0x52b687
movzx edx, bl
push edx
call fcn.005daff5
add esp, 4
test eax, eax
je 0x52b687
add dword [esp + 0x14], 2
jmp 0x52b695
inc dword [esp + 0x14]
jmp 0x52b695
mov dword [esp + 0x14], 0
mov ecx, dword [esp + 0x14]
mov eax, dword [esp + 0x10]
add ecx, eax
cmp ecx, esi
jl 0x52b6ac
lea esi, [eax - 1]
test esi, esi
jge 0x52b6ac
xor esi, esi
mov eax, dword [esp + 0x20]
test eax, eax
mov dword [esp + 0x10], 0
je 0x52b734
mov eax, dword [esp + 0x28]
cmp esi, eax
jge 0x52b734
lea edi, [esi + 1]
mov ebx, eax
lea ecx, [ecx]
lea edx, [esp + 0xc0]
push esi
push edx
call fcn.005867a0
add esp, 8
test eax, eax
je 0x52b6ef
mov dword [esp + 0x10], 1
jg 0x52b711
cmp eax, 0xffffffff
je 0x52b711
cmp eax, 0xfffffffe
jne 0x52b717
cmp edi, ebx
jge 0x52b717
lea eax, [esp + esi + 0xc1]
push eax
call fcn.00587620
add esp, 4
test eax, eax
je 0x52b717
inc esi
inc edi
cmp esi, ebx
jl 0x52b6d0
mov eax, dword [esp + 0x10]
test eax, eax
je 0x52b734
lea ecx, [esp + 0xc0]
push esi
push ecx
call fcn.005867a0
add esp, 8
test eax, eax
jne 0x52b770
mov eax, dword [esp + 0x34]
test eax, eax
je 0x52b761
mov eax, dword [esp + 0x28]
lea edi, [esi + 1]
cmp edi, eax
jge 0x52b761
lea edx, [esp + 0xc0]
push esi
push edx
call fcn.005dd489
add esp, 8
cmp eax, 2
jne 0x52b761
mov esi, edi
jmp 0x52b771
mov al, byte [esp + esi + 0xc0]
cmp al, 0x20
je 0x52b770
cmp al, 9
jne 0x52b771
inc esi
cmp esi, 1
jge 0x52b77b
mov esi, 1
mov eax, dword [esp + 0x2c]
test eax, eax
jne 0x52b78d
mov byte [esp + esi + 0xc0], 0
jmp 0x52b7ac
mov eax, dword [0x6870d0]
test eax, eax
jle 0x52b7a2
cmp esi, eax
jg 0x52b7a2
dec eax
mov dword [0x6870d0], eax
jmp 0x52b7e6
mov byte [esp + esi + 0xc0], 0
sub esi, eax
add dword [esp + 0x18], esi
mov eax, dword [esp + 0x3c]
mov ecx, dword [esp + 0x24]
mov edx, dword [ecx + 0x1c]
push eax
mov eax, dword [ebp + 0x14]
push edx
mov edx, dword [ebp + 0xc]
push eax
lea ecx, [esp + 0xcc]
push ecx
push edx
call fcn.0052a190
mov eax, dword [esp + 0x40]
add esp, 0x14
inc eax
mov dword [esp + 0x3c], 0
mov dword [esp + 0x2c], eax
mov eax, dword [esp + 0x18]
cmp eax, dword [esp + 0x1c]
jb 0x52b330
mov eax, dword [esp + 0x48]
test eax, eax
jl 0x52b805
push eax
call fcn.005dd2dc
add esp, 4
mov ecx, dword [esp + 0x40]
mov edx, dword [ebp + 8]
push ecx
push edx
call dword [sym.imp.GDI32.dll_SelectObject]
mov eax, dword [esp + 0x44]
test eax, eax
je 0x52b823
push eax
call dword [sym.imp.GDI32.dll_DeleteObject]
mov eax, dword [esp + 0x84]
mov ecx, dword [esp + 0x54]
mov edx, dword [esp + 0x58]
mov esi, dword [ebp + 0xc]
mov dword [0x6870c4], eax
mov eax, dword [esp + 0x60]
mov dword [0x6870f0], eax
mov eax, dword [esp + 0x68]
test eax, eax
mov dword [0x6870cc], ecx
mov dword [0x6870d0], edx
je 0x52b863
mov ecx, dword [esi + 0x12c4]
mov dword [esi + 0x12f0], ecx
mov eax, dword [esi + 0x12c4]
mov ecx, dword [esp + 0x70]
mov ebx, dword [esp + 0x24]
mov edx, dword [esi + 0x1304]
mov edi, dword [esp + 0x78]
push eax
push ebx
push ecx
mov dword [esi + 0x12c4], ecx
add edi, edx
call fcn.004e8a80
push ebx
mov dword [esi + 0x12c4], eax
mov dword [esi + 0x1304], edi
mov edi, dword [ebx + 0x44]
push eax
call fcn.004e8a00
mov dword [esi + 0x12c4], eax
mov eax, dword [esi + 0x1304]
add esp, 0x14
dec eax
mov dword [esi + 0x1304], eax
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret