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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x884
mov eax, dword [ebp + 0x10]
test eax, eax
push ebx
push esi
push edi
jne 0x523c7d
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov esi, dword [ebp + 0xc]
mov edx, dword [esi + 0x6cc]
cmp eax, edx
je 0x523c9f
mov ecx, dword [eax + 0x44]
test ecx, ecx
je 0x523c9f
mov edi, dword [ecx + 8]
cmp edi, dword [eax + 8]
jne 0x523c9f
mov eax, ecx
test eax, eax
jne 0x523c86
mov edx, dword [esi + 0x6f8]
xor ecx, ecx
cmp eax, edx
mov edx, dword [eax]
sete cl
mov edi, eax
mov dword [esp + 0x24], edi
lea ebx, [esp + 0x4a8]
mov dword [esp + 0x68], ecx
nop
mov cl, byte [edx]
inc edx
mov byte [ebx], cl
inc ebx
test cl, cl
jne 0x523cc0
lea ecx, [eax + 0x40]
mov dword [esp + 0x1c], ecx
mov ecx, dword [ecx]
test ecx, ecx
je 0x523d8b
jmp 0x523ce4
mov edi, dword [esp + 0x24]
mov esi, dword [ebp + 0xc]
mov edx, dword [eax + 8]
cmp edx, dword [ecx + 8]
jne 0x523d8b
mov eax, ecx
mov ecx, dword [eax + 0x10]
test ecx, ecx
mov edx, dword [eax]
jle 0x523d18
cmp byte [edx], 0x20
jne 0x523d0e
test ecx, ecx
jle 0x523d0e
mov bl, byte [edx + 1]
inc edx
dec ecx
cmp bl, 0x20
je 0x523d00
cmp byte [edx], 0
jne 0x523d18
mov edx, 0x5e7420
lea ecx, [esp + 0x4a8]
lea esi, [ecx + 1]
mov bl, byte [ecx]
inc ecx
test bl, bl
jne 0x523d22
sub ecx, esi
mov esi, ecx
mov ecx, edx
lea edi, [ecx + 1]
mov bl, byte [ecx]
inc ecx
test bl, bl
jne 0x523d32
sub ecx, edi
add ecx, esi
cmp ecx, 0x3b5
ja 0x523d84
mov ecx, edx
mov esi, edx
lea esp, [esp]
mov dl, byte [ecx]
inc ecx
test dl, dl
jne 0x523d50
sub ecx, esi
lea edi, [esp + 0x4a8]
mov edx, ecx
dec edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x523d63
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 0x523cdd
mov edi, dword [esp + 0x24]
mov esi, dword [ebp + 0xc]
lea ecx, [esp + 0x4a8]
lea ebx, [ecx + 1]
mov dl, byte [ecx]
inc ecx
test dl, dl
jne 0x523d95
sub ecx, ebx
mov ebx, ecx
xor ecx, ecx
cmp ebx, ecx
jg 0x523dbc
mov ecx, dword [ebp + 0x14]
mov dword [eax + 0x14], ecx
mov edx, dword [esi + 0x9fc]
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 0x523dfd
mov edx, dword [edi + 8]
cmp edx, dword [eax + 8]
jne 0x523dfd
push eax
mov eax, dword [esi + 0x6cc]
push eax
call fcn.004e3140
mov edx, dword [esi + 0x70c]
mov ecx, dword [esp + 0x24]
add esp, 8
dec edx
mov dword [esi + 0x6cc], eax
mov dword [esi + 0x70c], edx
mov eax, dword [ecx]
xor ecx, ecx
test eax, eax
jne 0x523dc6
mov edx, dword [esi + 0x70c]
mov eax, dword [0x63f7a4]
mov dword [esp + 0x78], edx
mov edx, dword [0x63f7ac]
mov dword [esp + 0x84], eax
mov eax, dword [0x63f7b0]
mov dword [esp + 0x54], edx
mov edx, dword [0x63f7d0]
mov dword [esp + 0x58], eax
mov eax, dword [edi + 8]
mov dword [0x63f7a4], eax
mov dword [esp + 0x60], edx
mov edx, dword [esi + 0x6cc]
mov dword [esi + 0x6cc], ecx
mov eax, dword [edi + 0xc]
mov dword [0x63f7ac], eax
mov eax, dword [edi + 0x10]
cmp eax, 0x104
mov dword [esp + 0x70], edx
mov dword [0x63f7b0], eax
mov edx, dword [edi + 0x20]
mov dword [esp + 0x3c], edx
mov edx, dword [edi + 4]
mov dword [0x63f7d0], 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 + 0x4a8]
lea edx, [esp + ebx + 0x4a8]
mov dword [esp + 0x18], ecx
mov dword [esp + 0x1c], edx
jle 0x523ea3
mov dword [0x63f7b0], 0x104
mov eax, dword [esi + 0x988]
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 + 0xde4]
xor ebx, ebx
cmp eax, ebx
je 0x523ecc
mov dword [esp + 0x20], ebx
xor eax, eax
jmp 0x523f02
cmp dword [0x60a514], ebx
jne 0x523edc
cmp dword [esi + 0xa08], ebx
je 0x523ef9
lea ecx, [esp + 0x4a8]
push ecx
call fcn.0057ab30
add esp, 4
cmp eax, 2
mov dword [esp + 0x20], 1
je 0x523efd
mov dword [esp + 0x20], ebx
mov eax, dword [0x642ee4]
cmp eax, ebx
mov dword [esp + 0x34], eax
mov dword [esp + 0x48], 0xffffffff
je 0x523f26
mov edx, dword [esi + 0x9f8]
push edx
push edi
call fcn.0049a850
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 + 0x4a8]
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 0x524411
mov edx, dword [0x63f7b0]
lea esp, [esp]
xor eax, eax
mov ecx, 0xf9
lea edi, [esp + 0xc0]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov eax, dword [esp + 0x2c]
xor ebx, ebx
cmp eax, ebx
je 0x523fb4
cmp edx, ebx
jle 0x523fb4
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 eax, dword [esp + 0x18]
push eax
lea ecx, [esp + 0xc4]
push 0x3e7
push ecx
call fcn.00423970
lea eax, [esp + 0xcc]
add esp, 0xc
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x523fd8
mov esi, dword [0x63f7ac]
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 0x5240d8
mov eax, dword [ebp + 0xc]
mov edx, dword [eax + 0x988]
push ebx
push edx
mov edx, dword [eax + 0x9f8]
lea ecx, [eax + 0x98c]
push ecx
mov ecx, dword [eax + 0x9f0]
push edx
mov edx, dword [eax + 0x9f4]
push ecx
push edx
mov edx, dword [eax + 0x71c]
lea ecx, [eax + 0xa00]
push ecx
push edx
push 1
lea ecx, [esp + 0x34]
push ecx
lea edx, [esp + 0x6c]
push edx
lea ecx, [esp + 0x6c]
push ecx
push eax
lea edx, [esp + 0xa0]
push edx
mov edx, dword [ebp + 0x14]
lea eax, [esp + 0x88]
push eax
lea ecx, [esp + 0xb0]
push ecx
mov ecx, dword [ebp + 8]
push edx
lea eax, [esp + 0xa0]
push eax
push ecx
lea edx, [esp + 0xcc]
push edx
lea eax, [esp + 0xb4]
push eax
lea ecx, [esp + 0x84]
push ecx
lea edx, [esp + 0xa4]
push edx
lea eax, [esp + 0x70]
push eax
lea ecx, [esp + 0xdc]
push ecx
lea edx, [esp + 0x9c]
push edx
mov edx, dword [esp + 0x88]
lea eax, [esp + 0x9c]
push eax
lea ecx, [esp + 0x12c]
push ecx
push edx
lea eax, [esp + 0x9c]
push eax
call fcn.00522fd0
mov esi, dword [esp + 0x88]
add esp, 0x78
cmp esi, edi
jg 0x5240de
jl 0x5240eb
mov ecx, dword [esp + 0x1c]
mov dword [esp + 0x18], ecx
jmp 0x5243c7
cmp esi, 1
jge 0x5240f5
mov esi, 1
dec esi
mov eax, esi
cdq
and edx, 3
add eax, edx
mov edx, dword [esp + 0x30]
sar eax, 2
mov ebx, esi
sub ebx, eax
cmp esi, ebx
mov dword [esp + 0x38], esi
mov dword [esp + 0x10], edx
jl 0x5241bc
lea esp, [esp]
cmp byte [esp + esi + 0xc0], 0x20
je 0x5241bc
mov eax, dword [esp + 0x20]
xor edi, edi
test eax, eax
je 0x524177
lea eax, [esp + 0xc0]
push esi
push eax
call fcn.0057aa30
add esp, 8
test eax, eax
je 0x524154
mov edi, 1
jg 0x5241b3
cmp eax, 0xffffffff
je 0x5241b3
cmp eax, 0xfffffffe
je 0x5241b3
test edi, edi
je 0x524177
lea ecx, [esp + 0xc0]
push esi
push ecx
call fcn.0057aa30
add esp, 8
test eax, eax
jne 0x52419a
mov eax, dword [esp + 0x34]
test eax, eax
je 0x52419a
lea edx, [esp + 0xc0]
push esi
push edx
call fcn.005cf858
add esp, 8
cmp eax, 1
je 0x5241b3
cmp eax, 2
je 0x5241b3
cmp byte [esp + esi + 0xc0], 2
jne 0x5241b3
mov ecx, dword [esp + 0x10]
xor eax, eax
test ecx, ecx
sete al
mov dword [esp + 0x10], eax
dec esi
cmp esi, ebx
jge 0x524120
test esi, esi
jge 0x5241c2
xor esi, esi
cmp esi, ebx
jg 0x5241cc
mov esi, dword [esp + 0x38]
jmp 0x5241e2
mov eax, dword [esp + 0x10]
cmp dword [esp + 0x30], eax
je 0x5241e2
mov dword [esp + 0x30], eax
mov dword [esp + 0x4c], 1
test esi, esi
mov dword [esp + 0x10], esi
jl 0x5242df
lea ecx, [esi - 5]
mov eax, esi
cmp eax, ecx
jl 0x5242df
mov eax, dword [esp + 0x10]
cmp byte [esp + eax + 0xc0], 3
je 0x524215
dec eax
mov dword [esp + 0x10], eax
jns 0x5241f3
jmp 0x5242df
mov ebx, dword [esp + 0x10]
mov al, byte [esp + ebx + 0xc1]
test al, al
lea ebx, [esp + ebx + 0xc0]
je 0x5242c0
movzx ecx, al
push ecx
call fcn.005cd445
add esp, 4
test eax, eax
je 0x5242c0
mov al, byte [ebx + 2]
test al, al
je 0x524269
movzx edx, al
push edx
call fcn.005cd445
add esp, 4
test eax, eax
je 0x524269
mov dword [esp + 0x14], 2
mov edi, 1
jmp 0x524273
mov dword [esp + 0x14], 1
xor edi, edi
cmp byte [edi + ebx + 2], 0x2c
jne 0x5242c8
mov al, byte [edi + ebx + 3]
test al, al
je 0x5242c8
movzx eax, al
push eax
call fcn.005cd445
add esp, 4
test eax, eax
je 0x5242c8
mov ecx, dword [esp + 0x14]
mov bl, byte [edi + ebx + 4]
inc ecx
test bl, bl
mov dword [esp + 0x14], ecx
je 0x5242ba
movzx ecx, bl
push ecx
call fcn.005cd445
add esp, 4
test eax, eax
je 0x5242ba
add dword [esp + 0x14], 2
jmp 0x5242c8
inc dword [esp + 0x14]
jmp 0x5242c8
mov dword [esp + 0x14], 0
mov edx, dword [esp + 0x14]
mov eax, dword [esp + 0x10]
add edx, eax
cmp edx, esi
jl 0x5242df
lea esi, [eax - 1]
test esi, esi
jge 0x5242df
xor esi, esi
mov eax, dword [esp + 0x20]
test eax, eax
mov dword [esp + 0x10], 0
je 0x524364
mov eax, dword [esp + 0x28]
cmp esi, eax
jge 0x524364
lea edi, [esi + 1]
mov ebx, eax
lea esp, [esp]
lea eax, [esp + 0xc0]
push esi
push eax
call fcn.0057aa30
add esp, 8
test eax, eax
je 0x52431f
mov dword [esp + 0x10], 1
jg 0x524341
cmp eax, 0xffffffff
je 0x524341
cmp eax, 0xfffffffe
jne 0x524347
cmp edi, ebx
jge 0x524347
lea ecx, [esp + esi + 0xc1]
push ecx
call fcn.0057b690
add esp, 4
test eax, eax
je 0x524347
inc esi
inc edi
cmp esi, ebx
jl 0x524300
mov eax, dword [esp + 0x10]
test eax, eax
je 0x524364
lea edx, [esp + 0xc0]
push esi
push edx
call fcn.0057aa30
add esp, 8
test eax, eax
jne 0x52438f
mov eax, dword [esp + 0x34]
test eax, eax
je 0x52438f
mov eax, dword [esp + 0x28]
lea edi, [esi + 1]
cmp edi, eax
jge 0x52438f
lea eax, [esp + 0xc0]
push esi
push eax
call fcn.005cf858
add esp, 8
cmp eax, 2
jne 0x52438f
mov esi, edi
mov eax, dword [esp + 0x2c]
inc esi
test eax, eax
jne 0x5243a2
mov byte [esp + esi + 0xc0], 0
jmp 0x5243c3
mov edx, dword [0x63f7b0]
test edx, edx
jle 0x5243b9
cmp esi, edx
jg 0x5243b9
dec edx
mov dword [0x63f7b0], edx
jmp 0x524403
mov byte [esp + esi + 0xc0], 0
sub esi, edx
add dword [esp + 0x18], esi
mov ecx, dword [esp + 0x3c]
mov edx, dword [esp + 0x24]
mov eax, dword [edx + 0x1c]
push ecx
mov ecx, dword [ebp + 0x14]
push eax
mov eax, dword [ebp + 0xc]
push ecx
lea edx, [esp + 0xcc]
push edx
push eax
call fcn.00522e70
mov eax, dword [esp + 0x40]
mov edx, dword [0x63f7b0]
add esp, 0x14
inc eax
mov dword [esp + 0x3c], 0
mov dword [esp + 0x2c], eax
mov ecx, dword [esp + 0x18]
cmp ecx, dword [esp + 0x1c]
jb 0x523f70
mov eax, dword [esp + 0x48]
test eax, eax
jl 0x524422
push eax
call fcn.005cf6ab
add esp, 4
mov edx, dword [esp + 0x40]
mov eax, dword [ebp + 8]
push edx
push eax
call dword [sym.imp.GDI32.dll_SelectObject]
mov eax, dword [esp + 0x44]
test eax, eax
je 0x524440
push eax
call dword [sym.imp.GDI32.dll_DeleteObject]
mov eax, dword [esp + 0x58]
mov ecx, dword [esp + 0x84]
mov edx, dword [esp + 0x54]
mov esi, dword [ebp + 0xc]
mov dword [0x63f7b0], eax
mov eax, dword [esp + 0x68]
test eax, eax
mov dword [0x63f7a4], ecx
mov ecx, dword [esp + 0x60]
mov dword [0x63f7ac], edx
mov dword [0x63f7d0], ecx
je 0x524481
mov edx, dword [esi + 0x6cc]
mov dword [esi + 0x6f8], edx
mov eax, dword [esi + 0x6cc]
mov ecx, dword [esp + 0x70]
mov ebx, dword [esp + 0x24]
mov edx, dword [esi + 0x70c]
mov edi, dword [esp + 0x78]
push eax
push ebx
push ecx
mov dword [esi + 0x6cc], ecx
add edi, edx
call fcn.004e31c0
push ebx
mov dword [esi + 0x6cc], eax
mov dword [esi + 0x70c], edi
mov edi, dword [ebx + 0x44]
push eax
call fcn.004e3140
mov dword [esi + 0x6cc], eax
mov eax, dword [esi + 0x70c]
add esp, 0x14
dec eax
mov dword [esi + 0x70c], eax
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret