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

Disassembly:
sub esp, 0x8c
push ebx
mov ebx, dword [esp + 0x94]
push ebp
push esi
xor esi, esi
mov ebp, ecx
cmp word [ebx + 0x65], si
push edi
mov dword [esp + 0x18], ebp
mov dword [esp + 0x68], esi
je 0x53cbb5
mov eax, dword [ebx + 0x47]
test eax, eax
je 0x53c1c5
mov esi, dword [eax + 0x4a]
mov dword [esp + 0x68], esi
mov edx, dword [ebx + 0x4f]
lea eax, [ebx + 0x73]
push eax
mov eax, dword [ebp + 0x1c]
lea ecx, [ebx + 0x71]
push ecx
mov ecx, dword [eax]
push edx
call fcn.004dadb0
mov eax, dword [ebx + 0x47]
mov edi, 1
test eax, eax
je 0x53caca
mov eax, dword [esp + 0xb0]
test eax, eax
jne 0x53c204
test esi, esi
jne 0x53c204
cmp word [ebx + 0x63], di
je 0x53caca
mov ecx, dword [ebp + 0x1c]
xor eax, eax
mov dword [esp + 0x60], eax
mov dword [esp + 0x64], eax
mov dword [esp + 0x88], eax
mov dword [esp + 0x8c], eax
mov ecx, dword [ecx]
push eax
mov dword [esp + 0x48], edi
mov dword [esp + 0x94], eax
mov dword [esp + 0x84], edi
call fcn.004daeb0
mov eax, dword [ebp + 0x1c]
mov ecx, dword [eax]
call fcn.004da7e0
mov ecx, dword [ebx + 0x47]
cmp word [ebx + 0x63], di
mov esi, eax
mov edx, dword [ecx]
mov dword [esp + 0x98], esi
mov dword [esp + 0x3c], edx
jle 0x53c2ae
cmp dword [ebx + 0x7b], 4
jne 0x53c2ae
test esi, esi
jle 0x53c2ae
movsx eax, word [ebx + 0x65]
cdq
lea edi, [esi + esi*4]
idiv edi
cmp eax, 1
mov dword [esp + 0x44], eax
jge 0x53c2a1
movsx edx, word [ebx + 0x61]
mov eax, 0x66666667
imul edx
sar edx, 1
mov eax, edx
shr eax, 0x1f
add edx, eax
mov eax, edx
cmp eax, 1
mov dword [esp + 0x44], eax
jge 0x53c2a1
mov dword [esp + 0x44], 1
jmp 0x53c2ae
cmp eax, 5
jle 0x53c2ae
mov dword [esp + 0x44], 5
mov dx, word [0x5cae5c]
mov word [ebx + 0x75], dx
mov ax, word [0x5cae5e]
mov word [ebx + 0x75], ax
mov edx, dword [ebp + 0x1c]
mov eax, dword [edx]
mov edx, dword [eax + 4]
mov eax, dword [ebx + 0x7b]
cmp eax, 2
mov dword [esp + 0x4c], edx
jne 0x53c2dd
mov dword [esp + 0x5c], eax
jmp 0x53c2ed
sub eax, 3
neg eax
sbb eax, eax
and al, 0xfe
add eax, 3
mov dword [esp + 0x5c], eax
mov eax, dword [ebp + 0x5d]
mov ecx, dword [ecx + 8]
mov dword [esp + 0x10], eax
mov eax, dword [ebx + 0x37]
mov dword [esp + 0x38], eax
mov al, byte [ebx + 0x88]
test al, 0x40
mov dword [esp + 0x40], ecx
je 0x53c32c
and esi, 0xffff
shl esi, 0x10
mov dword [esp + 0x90], esi
je 0x53c32c
shr esi, 0x10
movsx eax, si
push eax
push edx
call dword [sym.imp.GDI32.dll_SetTextCharacterExtra]
mov eax, dword [esp + 0xb0]
mov dword [esp + 0x6c], 0xffffffff
test eax, eax
je 0x53c420
test byte [ebp + 0x85], 4
je 0x53c420
lea ecx, [esp + 0x60]
push ecx
call dword [sym.imp.USER32.dll_GetCursorPos]
movsx eax, word [ebx + 0x63]
xor esi, esi
test eax, eax
jle 0x53c420
mov edi, dword [sym.imp.USER32.dll_PtInRect]
mov edx, dword [esp + 0xac]
mov ecx, dword [esp + 0xa8]
push esi
push eax
lea eax, [esp + 0x78]
push edx
push eax
call fcn.004dce30
mov ecx, dword [esp + 0xa4]
mov ebp, dword [esp + 0x70]
mov eax, dword [ecx + 0xc]
mov edx, dword [eax + 0xc]
add ebp, edx
mov edx, dword [esp + 0x78]
mov dword [esp + 0x70], ebp
mov ecx, dword [eax + 0xc]
add edx, ecx
mov ecx, dword [esp + 0x7c]
mov dword [esp + 0x78], edx
mov ebp, dword [eax + 0x10]
add ecx, ebp
mov dword [esp + 0x7c], ecx
mov edx, dword [eax + 0x10]
mov eax, dword [0x566b38]
mov ebp, eax
sub eax, ecx
mov ecx, dword [esp + 0x60]
and eax, 0xffff
sub ebp, edx
mov edx, dword [esp + 0x74]
mov dword [esp + 0x7c], eax
mov eax, dword [esp + 0x64]
sub ebp, edx
push eax
lea edx, [esp + 0x74]
and ebp, 0xffff
push ecx
push edx
mov dword [esp + 0x80], ebp
call edi
cmp eax, 1
je 0x53c40a
movsx eax, word [ebx + 0x63]
inc esi
cmp esi, eax
jl 0x53c36f
jmp 0x53c41c
mov eax, dword [esp + 0x70]
mov ecx, dword [esp + 0x60]
sub ecx, eax
mov dword [esp + 0x6c], esi
mov dword [esp + 0x60], ecx
mov ebp, dword [esp + 0x18]
mov ecx, dword [ebx + 0x33]
movsx eax, word [ebx + 0x63]
movsx ecx, word [ecx + 0x81]
cmp ecx, eax
mov dword [esp + 0x84], ecx
jg 0x53c440
mov dword [esp + 0x84], eax
test eax, eax
mov dword [esp + 0x20], 0
jle 0x53ca60
mov edx, dword [esp + 0x3c]
add edx, 0xc
mov dword [esp + 0x1c], edx
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x84]
mov edx, dword [esp + 0xac]
push eax
push ecx
mov ecx, dword [esp + 0xb0]
lea eax, [esp + 0x2c]
push edx
push eax
call fcn.004dce30
mov ecx, dword [esp + 0xa4]
mov edi, dword [esp + 0x24]
mov esi, dword [esp + 0x2c]
mov eax, dword [ecx + 0xc]
mov edx, dword [eax + 0xc]
add edi, edx
mov dword [esp + 0x24], edi
mov ecx, dword [eax + 0xc]
add esi, ecx
mov ecx, dword [esp + 0x30]
mov dword [esp + 0x2c], esi
mov edx, dword [eax + 0x10]
add ecx, edx
mov edi, dword [esp + 0x38]
mov dword [esp + 0x30], ecx
mov edx, dword [eax + 0x10]
mov eax, dword [0x566b38]
mov esi, eax
sub eax, ecx
and eax, 0xffff
sub esi, edx
mov edx, dword [esp + 0x28]
mov dword [esp + 0x30], eax
xor eax, eax
sub esi, edx
mov dword [esp + 0x34], eax
mov dword [esp + 0x48], eax
mov ax, word [0x5cae5e]
and esi, 0xffff
mov word [esp + 0x94], ax
or ecx, 0xffffffff
xor eax, eax
mov dword [esp + 0x28], esi
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, dword [esp + 0x68]
mov edx, ecx
mov esi, edi
mov edi, dword [esp + 0x10]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
test eax, eax
rep movsb byte es:[edi], byte [esi]
je 0x53c53f
mov edi, dword [esp + 0x10]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, 0x20202020
dec ecx
mov edx, ecx
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
mov esi, dword [esp + 0xb0]
test esi, esi
je 0x53c570
mov eax, dword [esp + 0x80]
test eax, eax
je 0x53c570
mov eax, dword [ebx + 0x27]
mov ecx, dword [esp + 0x10]
push esi
mov edx, dword [eax + 0x60]
call fcn.004ad540
mov dword [esp + 0x80], 0
cmp esi, 1
je 0x53c5c3
mov esi, dword [esp + 0x3c]
cmp dword [esi], 0xffffffff
je 0x53c5c3
mov ecx, dword [esp + 0x1c]
mov eax, dword [ecx - 4]
test eax, eax
mov dword [esp + 0x48], eax
je 0x53c5a1
shr eax, 0x10
movsx edx, ax
mov eax, dword [esp + 0x4c]
push 1
push edx
push eax
call dword [sym.imp.GDI32.dll_SetTextJustification]
mov ecx, dword [ebp + 0x61]
mov edx, dword [esp + 0x10]
mov eax, dword [esi]
push ecx
mov ecx, dword [ebp + 0x1c]
push edx
push eax
lea edx, [esp + 0x94]
mov ecx, dword [ecx]
call fcn.004db570
jmp 0x53c8c6
mov edi, dword [esp + 0x10]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov dword [esp + 0x14], ecx
mov ebp, ecx
jne 0x53c5eb
mov edx, dword [esp + 0x18]
mov eax, dword [edx + 0x61]
mov dword [eax], 0
jmp 0x53c894
mov esi, dword [esp + 0x2c]
mov edi, dword [esp + 0x24]
mov edx, dword [esp + 0x10]
sub esi, edi
mov edi, dword [esp + 0x18]
mov eax, dword [esp + 0x14]
mov dword [esp + 0x58], esi
mov ecx, dword [edi + 0x61]
push ecx
mov ecx, dword [edi + 0x1c]
push edx
push eax
mov ecx, dword [ecx]
lea edx, [esp + 0x94]
call fcn.004db570
mov ecx, dword [edi + 0x61]
mov edx, dword [esp + 0x14]
mov edi, dword [ecx + edx*4]
cmp edi, esi
jle 0x53c894
movsx eax, word [ebx + 0x63]
mov edx, dword [esp + 0x20]
dec eax
cmp edx, eax
je 0x53c87a
mov edi, dword [esp + 0x14]
push esi
mov edx, edi
call fcn.004ad950
cmp eax, edi
mov dword [esp + 0x50], eax
je 0x53c75b
mov ecx, dword [esp + 0x38]
mov ebx, dword [esp + 0x10]
xor esi, esi
mov ebp, ecx
mov dword [esp + 0x54], esi
mov dword [esp + 0x14], esi
call fcn.0053c0e0
cmp eax, esi
je 0x53c70b
jmp 0x53c67e
mov esi, dword [esp + 0x14]
mov edx, dword [esp + 0x50]
lea ecx, [eax + esi]
cmp ecx, edx
mov dword [esp + 0x14], ecx
jg 0x53c82f
mov ecx, eax
mov esi, ebp
mov edx, ecx
mov edi, ebx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
add ebp, eax
and ecx, 3
add ebx, eax
mov eax, dword [esp + 0x14]
rep movsb byte es:[edi], byte [esi]
mov cl, byte [ebp]
mov dword [esp + 0x14], eax
test cl, cl
mov eax, ebp
je 0x53c6c7
cmp cl, 0x20
jne 0x53c6c7
mov cl, byte [eax + 1]
inc eax
test cl, cl
jne 0x53c6ba
sub eax, ebp
mov esi, ebp
mov ecx, eax
mov edi, ebx
mov edx, ecx
add ebx, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
add ebp, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [esp + 0x14]
add ecx, eax
mov eax, dword [esp + 0x50]
cmp ecx, eax
mov dword [esp + 0x14], ecx
jge 0x53c70b
mov edx, dword [esp + 0x54]
mov ecx, ebp
inc edx
mov dword [esp + 0x54], edx
call fcn.0053c0e0
test eax, eax
jne 0x53c67a
mov eax, dword [esp + 0x10]
mov byte [ebx], 0
sub ebx, eax
mov esi, eax
mov edi, esi
or ecx, 0xffffffff
xor eax, eax
mov dword [esp + 0x14], ebx
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov edx, ecx
lea eax, [ecx + esi - 1]
dec ecx
test edx, edx
je 0x53c73e
cmp byte [eax], 0x20
jne 0x53c73e
dec eax
mov edx, ecx
dec ecx
test edx, edx
jne 0x53c731
mov byte [eax + 1], 0
mov edi, esi
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
mov ebx, dword [esp + 0xa0]
mov esi, dword [esp + 0x58]
not ecx
dec ecx
mov ebp, ecx
cmp dword [ebx + 0x7b], 4
jne 0x53c894
mov eax, dword [esp + 0x38]
cmp byte [eax + ebp], 0
je 0x53c894
mov eax, dword [esp + 0x34]
mov edi, dword [esp + 0x18]
test eax, eax
je 0x53c79a
mov ecx, dword [edi + 0x61]
mov edx, dword [esp + 0x10]
mov eax, dword [edi + 0x1c]
push ecx
push edx
push ebp
mov ecx, dword [eax]
lea edx, [esp + 0x94]
call fcn.004db570
mov ecx, dword [edi + 0x61]
mov eax, dword [ecx + ebp*4]
cmp esi, eax
mov dword [esp + 0x58], eax
jle 0x53c894
xor eax, eax
xor edi, edi
xor ecx, ecx
test ebp, ebp
jle 0x53c7df
mov edx, dword [esp + 0x10]
cmp byte [ecx + edx], 0x20
jne 0x53c7c1
inc edi
inc ecx
cmp ecx, ebp
jl 0x53c7ba
cmp edi, 1
jle 0x53c7df
mov ecx, dword [esp + 0x58]
xor edx, edx
mov eax, ecx
shl eax, 0x10
sub eax, ecx
add eax, esi
shl eax, 0x10
div edi
test eax, eax
mov dword [esp + 0x48], eax
jbe 0x53c894
shr eax, 0x10
movsx edx, ax
mov eax, dword [esp + 0x4c]
push 1
push edx
push eax
call dword [sym.imp.GDI32.dll_SetTextJustification]
mov eax, dword [esp + 0xb0]
test eax, eax
je 0x53c894
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 0x10]
mov ecx, dword [eax + 0x61]
mov eax, dword [eax + 0x1c]
push ecx
push edx
mov ecx, dword [eax]
push ebp
lea edx, [esp + 0x94]
call fcn.004db570
jmp 0x53c894
dec edx
cmp esi, edx
jge 0x53c70b
mov ecx, dword [esp + 0x54]
mov esi, dword [esp + 0x44]
cmp ecx, esi
jge 0x53c70b
mov ecx, eax
mov esi, ebp
mov edi, ebx
mov dword [esp + 0x34], 1
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
mov eax, dword [esp + 0x50]
and ecx, 3
mov ebx, edx
rep movsb byte es:[edi], byte [esi]
mov esi, dword [esp + 0x10]
mov byte [eax + esi - 1], 0x2d
mov byte [eax + esi], 0
jmp 0x53c716
lea ecx, [esi + esi*2]
lea eax, [esi + ecx*8]
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
shl eax, 4
cdq
idiv edi
mov word [esp + 0x94], ax
mov edx, dword [esp + 0x3c]
mov ecx, dword [esp + 0x14]
mov eax, dword [esp + 0x1c]
mov esi, dword [esp + 0x3c]
mov dword [edx], ecx
mov edx, dword [esp + 0x48]
mov cx, word [esp + 0x94]
mov dword [eax - 4], edx
mov edx, dword [esp + 0x34]
mov dword [eax - 8], ebp
mov ebp, dword [esp + 0x18]
mov word [eax], cx
mov dword [eax + 2], edx
mov eax, dword [esp + 0x1c]
mov edi, dword [esi]
cmp word [eax], 0x2710
je 0x53c901
mov edx, dword [ebp + 0x1c]
mov ecx, eax
push ecx
mov ecx, dword [edx]
call fcn.004daeb0
xor esi, esi
mov eax, dword [ebp + 0x61]
mov ecx, dword [eax + esi*4]
push ecx
mov ecx, dword [esp + 0x20]
call fcn.004dd640
movsx edx, ax
mov eax, dword [ebp + 0x61]
inc esi
cmp esi, edi
mov dword [eax + esi*4 - 4], edx
jbe 0x53c8e2
mov ecx, dword [esp + 0x1c]
mov edx, dword [ecx + 2]
mov eax, dword [ecx - 8]
test edx, edx
mov dword [esp + 0x34], eax
je 0x53c91c
mov ecx, dword [esp + 0x10]
mov byte [eax + ecx - 1], 0x2d
mov ecx, dword [esp + 0x38]
mov eax, dword [esp + 0xb0]
add ecx, edi
test eax, eax
mov dword [esp + 0x38], ecx
je 0x53c95d
mov edx, dword [esp + 0x6c]
mov eax, dword [esp + 0x20]
cmp edx, eax
jne 0x53c95d
xor eax, eax
test edi, edi
jbe 0x53c95d
mov ecx, dword [ebp + 0x61]
mov edx, dword [esp + 0x60]
add ecx, 4
cmp dword [ecx], edx
jg 0x53ca89
inc eax
add ecx, 4
cmp eax, edi
jb 0x53c94d
mov esi, dword [esp + 0x40]
mov eax, dword [esp + 0xb4]
mov ecx, dword [esp + 0x5c]
mov edx, dword [ebp + 0x61]
push eax
mov eax, dword [esp + 0x38]
push ecx
mov ecx, dword [edx + eax*4]
lea edx, [esp + 0x2c]
push ecx
mov ecx, dword [esp + 0x1c]
push edx
mov edx, dword [ebp + 0x1c]
push ecx
push eax
mov ecx, dword [edx]
call fcn.0050fde0
mov eax, dword [esp + 0x24]
test eax, eax
jl 0x53c9bd
cmp eax, dword [esp + 0x2c]
jge 0x53c9bd
mov eax, dword [ebp + 0x1c]
test byte [eax + 0x48], 2
je 0x53c9bd
mov eax, dword [esp + 0xa4]
lea ecx, [esp + 0x24]
push ecx
mov ecx, dword [eax + 0x10]
lea edx, [eax + 0x4c]
push edx
call fcn.0050ff40
mov eax, dword [esp + 0xb4]
test eax, eax
jne 0x53ca1b
mov eax, dword [esp + 0xb0]
test eax, eax
je 0x53ca1b
test esi, esi
jl 0x53ca15
cmp esi, edi
jl 0x53c9e6
jne 0x53ca15
mov eax, dword [esp + 0x38]
cmp byte [eax], 0
jne 0x53ca15
test byte [ebp + 0x54], 2
jne 0x53ca12
mov ecx, dword [ebx + 0x47]
mov eax, dword [esp + 0x5c]
mov edx, dword [ecx + 0x42]
lea ecx, [esp + 0x24]
push edx
mov edx, dword [esp + 0x9c]
push eax
mov eax, dword [esp + 0x3c]
push ecx
push edx
push esi
push eax
mov ecx, ebp
call fcn.0053cbd0
or esi, 0xffffffff
sub esi, edi
mov dword [esp + 0x40], esi
mov eax, dword [esp + 0x48]
test eax, eax
je 0x53ca32
mov ecx, dword [esp + 0x4c]
push 1
push 0
push ecx
call dword [sym.imp.GDI32.dll_SetTextJustification]
mov edi, dword [esp + 0x3c]
mov esi, dword [esp + 0x1c]
movsx edx, word [ebx + 0x63]
mov eax, 0x12
add edi, eax
add esi, eax
mov eax, dword [esp + 0x20]
mov dword [esp + 0x3c], edi
inc eax
mov dword [esp + 0x1c], esi
cmp eax, edx
mov dword [esp + 0x20], eax
jl 0x53c45b
mov eax, dword [esp + 0x90]
test eax, eax
je 0x53cbb5
mov eax, dword [esp + 0x4c]
push 0
push eax
call dword [sym.imp.GDI32.dll_SetTextCharacterExtra]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x8c
ret 0x18
mov ecx, dword [ebx + 0x47]
mov esi, eax
mov dword [esp + 0x40], esi
mov dword [ecx + 8], eax
mov eax, dword [esp + 0x20]
test eax, eax
jle 0x53cab7
xor ecx, ecx
mov edx, eax
mov eax, dword [ebx + 0x47]
add ecx, 0x12
mov esi, dword [eax]
mov esi, dword [esi + ecx - 0x12]
add dword [eax + 8], esi
dec edx
jne 0x53caa1
mov esi, dword [esp + 0x40]
mov eax, dword [ebx + 0x47]
mov ecx, dword [ebx + 0x37]
mov edx, dword [eax + 8]
add edx, ecx
mov dword [eax + 0xc], edx
jmp 0x53c961
mov ecx, dword [ebx + 0x33]
mov esi, dword [esp + 0xac]
push 0
lea eax, [esp + 0x28]
movsx edx, word [ecx + 0x81]
mov ecx, dword [esp + 0xac]
push edx
push esi
push eax
call fcn.004dce30
mov edi, dword [esp + 0xa4]
mov edx, dword [esp + 0x24]
mov eax, dword [edi + 0xc]
mov ecx, dword [eax + 0xc]
add edx, ecx
mov ecx, dword [esp + 0x2c]
mov dword [esp + 0x24], edx
mov edx, dword [eax + 0xc]
add ecx, edx
mov dword [esp + 0x2c], ecx
mov ecx, dword [esp + 0x30]
add ecx, dword [eax + 0x10]
mov dword [esp + 0x30], ecx
mov edx, dword [eax + 0x10]
mov eax, dword [0x566b38]
mov ebp, eax
sub eax, ecx
mov cl, byte [ebx + 0x87]
and eax, 0xffff
mov dword [esp + 0x30], eax
mov eax, dword [esp + 0xb4]
shr ecx, 6
sub ebp, edx
mov edx, dword [esp + 0x28]
and ecx, 1
push eax
sub ebp, edx
push ecx
movsx edx, word [esi + 0x18]
mov cl, byte [ebx + 0x88]
lea eax, [ebx + 0x75]
shr ecx, 6
push edx
mov edx, dword [ebx + 0x7b]
and ecx, 1
push eax
push ecx
mov ecx, dword [ebx + 0x37]
lea eax, [esp + 0x38]
push edx
push eax
and ebp, 0xffff
push ecx
mov ecx, edi
mov dword [esp + 0x48], ebp
call fcn.004da460
mov word [esi + 0x18], ax
mov eax, dword [esp + 0x24]
test eax, eax
jl 0x53cbb5
cmp eax, dword [esp + 0x2c]
jge 0x53cbb5
mov edx, dword [esp + 0x18]
mov eax, dword [edx + 0x1c]
test byte [eax + 0x48], 2
je 0x53cbb5
lea ecx, [esp + 0x24]
lea edx, [edi + 0x4c]
push ecx
mov ecx, dword [edi + 0x10]
push edx
call fcn.0050ff40
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x8c
ret 0x18