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

Disassembly:
mov eax, 0x6c
call fcn.005e6090
push ebx
push esi
push edi
mov edi, dword [esp + 0x7c]
xor esi, esi
cmp word [edi + 0x66], si
mov ebx, ecx
mov dword [esp + 0x14], ebx
mov dword [esp + 0x34], esi
je 0x592edd
mov eax, dword [edi + 0x48]
cmp eax, esi
je 0x592735
mov eax, dword [eax + 0x50]
mov dword [esp + 0x34], eax
mov eax, dword [edi + 0x50]
push ebp
lea ecx, [edi + 0x74]
push ecx
mov ecx, dword [ebx + 0x1c]
mov ecx, dword [ecx + 4]
lea edx, [edi + 0x72]
push edx
push eax
call fcn.00504780
cmp dword [edi + 0x48], esi
mov ebp, 1
je 0x592de6
cmp dword [esp + 0x90], esi
jne 0x592774
cmp dword [esp + 0x38], esi
jne 0x592774
cmp word [edi + 0x64], bp
je 0x592de6
mov edx, dword [ebx + 0x1c]
mov dword [esp + 0x64], esi
mov dword [esp + 0x68], esi
mov dword [esp + 0x5c], esi
mov dword [esp + 0x60], esi
mov ecx, dword [edx + 4]
push esi
mov dword [esp + 0x30], ebp
mov dword [esp + 0x5c], esi
mov dword [esp + 0x4c], ebp
call fcn.00504880
mov eax, dword [ebx + 0x1c]
mov ecx, dword [eax + 4]
call fcn.005042a0
cmp word [edi + 0x64], bp
mov ecx, dword [edi + 0x48]
mov esi, eax
mov eax, dword [ecx]
mov dword [esp + 0x54], esi
mov dword [esp + 0x28], eax
jle 0x59280d
cmp dword [edi + 0x7c], 4
jne 0x59280d
test esi, esi
jle 0x59280d
movsx eax, word [edi + 0x66]
cdq
lea ebp, [esi + esi*4]
idiv ebp
cmp eax, 1
mov dword [esp + 0x2c], eax
jge 0x592800
movsx edx, word [edi + 0x62]
mov eax, 0x66666667
imul edx
sar edx, 1
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp eax, 1
mov dword [esp + 0x2c], eax
jge 0x592800
mov dword [esp + 0x2c], 1
jmp 0x59280d
cmp eax, 5
jle 0x59280d
mov dword [esp + 0x2c], 5
mov dx, word [0x723da8]
mov word [edi + 0x76], dx
mov ax, word [0x62cac8]
mov word [edi + 0x76], ax
mov edx, dword [ebx + 0x1c]
mov eax, dword [edx + 4]
mov edx, dword [eax + 4]
mov eax, dword [edi + 0x7c]
cmp eax, 2
mov dword [esp + 0x30], edx
jne 0x59283d
mov dword [esp + 0x40], eax
jmp 0x592851
mov esi, dword [esp + 0x54]
xor edx, edx
cmp eax, 3
sete dl
lea edx, [edx + edx + 1]
mov dword [esp + 0x40], edx
mov eax, dword [ebx + 0x64]
mov edx, dword [edi + 0x38]
mov dword [esp + 0x1c], eax
mov eax, dword [ecx + 8]
mov dword [esp + 0x24], eax
test byte [edi + 0x8b], 0x40
mov dword [esp + 0x20], edx
je 0x59288f
movzx eax, si
shl eax, 0x10
test eax, eax
mov dword [esp + 0x58], eax
je 0x59288f
mov edx, dword [esp + 0x30]
shr eax, 0x10
movsx ecx, ax
push ecx
push edx
call dword [sym.imp.GDI32.dll_SetTextCharacterExtra]
mov eax, dword [esp + 0x90]
test eax, eax
mov dword [esp + 0x50], 0xffffffff
je 0x5928e0
test byte [ebx + 0x8c], 4
je 0x5928e0
lea eax, [esp + 0x64]
push eax
call dword [sym.imp.USER32.dll_GetCursorPos]
mov eax, dword [esp + 0x8c]
lea ecx, [esp + 0x64]
push ecx
mov ecx, dword [esp + 0x8c]
lea edx, [esp + 0x54]
push edx
mov edx, dword [esp + 0x8c]
push eax
push ecx
push edi
push edx
mov ecx, ebx
call fcn.00592620
mov ecx, dword [edi + 0x34]
movsx ecx, word [ecx + 0x82]
movsx eax, word [edi + 0x64]
cmp ecx, eax
mov dword [esp + 0x44], ecx
jg 0x5928fa
mov dword [esp + 0x44], eax
test eax, eax
mov dword [esp + 0x14], 0
jle 0x592d81
mov edx, dword [esp + 0x28]
add edx, 0xc
mov dword [esp + 0x10], edx
jmp 0x592920
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x44]
mov edx, dword [esp + 0x8c]
push eax
push ecx
mov ecx, dword [esp + 0x90]
push edx
lea eax, [esp + 0x78]
push eax
call fcn.005186e0
mov ecx, dword [esp + 0x84]
mov eax, dword [ecx + 0xc]
mov edx, dword [eax + 0xc]
mov esi, dword [esp + 0x6c]
add esi, edx
mov edx, dword [esp + 0x74]
mov dword [esp + 0x6c], esi
mov ecx, dword [eax + 0xc]
add edx, ecx
mov ecx, dword [esp + 0x78]
mov dword [esp + 0x74], edx
mov ebp, dword [eax + 0x10]
mov edx, dword [esp + 0x70]
add ecx, ebp
mov dword [esp + 0x78], ecx
mov esi, dword [eax + 0x10]
mov ebp, dword [esp + 0x1c]
add edx, esi
mov dword [esp + 0x70], edx
mov esi, dword [eax + 0x1c]
mov si, word [esi]
sub si, dx
movzx edx, si
mov dword [esp + 0x70], edx
mov eax, dword [eax + 0x1c]
mov dx, word [eax]
sub dx, cx
mov cx, word [0x62cac8]
movzx eax, dx
mov dword [esp + 0x78], eax
xor esi, esi
mov word [esp + 0x4c], cx
mov ecx, dword [esp + 0x20]
mov eax, ebp
mov dword [esp + 0x3c], esi
mov dword [esp + 0x34], esi
sub eax, ecx
mov dl, byte [ecx]
mov byte [ecx + eax], dl
inc ecx
test dl, dl
jne 0x5929c3
cmp dword [esp + 0x38], esi
je 0x5929eb
cmp byte [ebp], 0
mov eax, ebp
je 0x5929eb
jmp 0x5929e0
mov byte [eax], 0x20
mov cl, byte [eax + 1]
inc eax
test cl, cl
jne 0x5929e0
mov esi, dword [esp + 0x90]
test esi, esi
je 0x592a14
mov eax, dword [esp + 0x48]
test eax, eax
je 0x592a14
mov edx, dword [edi + 0x28]
mov edx, dword [edx + 0x6c]
push esi
mov ecx, ebp
call fcn.004ea0a0
mov dword [esp + 0x48], 0
cmp esi, 1
je 0x592a61
mov esi, dword [esp + 0x28]
cmp dword [esi], 0xffffffff
je 0x592a61
mov eax, dword [esp + 0x10]
mov eax, dword [eax - 4]
test eax, eax
mov dword [esp + 0x34], eax
je 0x592a45
mov edx, dword [esp + 0x30]
shr eax, 0x10
movsx ecx, ax
push 1
push ecx
push edx
call dword [sym.imp.GDI32.dll_SetTextJustification]
mov eax, dword [ebx + 0x68]
mov ecx, dword [esi]
push eax
mov eax, dword [ebx + 0x1c]
push ebp
push ecx
mov ecx, dword [eax + 4]
lea edx, [esp + 0x68]
call fcn.00504d80
jmp 0x592be6
mov eax, ebp
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x592a66
sub eax, edx
mov ebp, eax
mov edi, ebp
jne 0x592a83
mov ecx, dword [ebx + 0x68]
mov dword [ecx], 0
jmp 0x592bb4
mov ebx, dword [esp + 0x18]
mov edx, dword [ebx + 0x68]
mov ecx, dword [esp + 0x6c]
mov esi, dword [esp + 0x74]
mov eax, dword [esp + 0x1c]
push edx
sub esi, ecx
mov ecx, dword [ebx + 0x1c]
mov ecx, dword [ecx + 4]
push eax
push ebp
lea edx, [esp + 0x68]
call fcn.00504d80
mov ecx, dword [ebx + 0x68]
mov ebx, dword [ecx + ebp*4]
cmp ebx, esi
jle 0x592bb4
mov edx, dword [esp + 0x80]
movsx eax, word [edx + 0x64]
mov edx, dword [esp + 0x14]
dec eax
cmp edx, eax
je 0x592ba4
push esi
mov edx, ebp
call fcn.004e9c30
cmp eax, ebp
mov ebx, dword [esp + 0x1c]
je 0x592b0e
mov edx, dword [esp + 0x2c]
lea ecx, [esp + 0x3c]
push ecx
push edx
push eax
mov eax, dword [esp + 0x2c]
push ebx
call fcn.00592450
mov ecx, ebx
mov ebp, eax
call fcn.00401050
mov eax, ebx
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x592b03
sub eax, edx
mov edi, eax
mov eax, dword [esp + 0x80]
cmp dword [eax + 0x7c], 4
jne 0x592bb4
mov ecx, dword [esp + 0x20]
cmp byte [edi + ecx], 0
je 0x592bb4
mov eax, dword [esp + 0x3c]
test eax, eax
je 0x592b4e
mov eax, dword [esp + 0x18]
mov edx, dword [eax + 0x68]
mov eax, dword [eax + 0x1c]
mov ecx, dword [eax + 4]
push edx
push ebx
push edi
lea edx, [esp + 0x68]
call fcn.00504d80
mov ecx, dword [esp + 0x18]
mov edx, dword [ecx + 0x68]
cmp esi, dword [edx + edi*4]
jle 0x592bb4
push esi
push edi
push ebx
call fcn.00592340
test eax, eax
mov dword [esp + 0x34], eax
jbe 0x592bb4
mov ecx, dword [esp + 0x30]
shr eax, 0x10
movsx eax, ax
push 1
push eax
push ecx
call dword [sym.imp.GDI32.dll_SetTextJustification]
mov eax, dword [esp + 0x90]
test eax, eax
je 0x592bb4
mov eax, dword [esp + 0x18]
mov edx, dword [eax + 0x68]
mov eax, dword [eax + 0x1c]
mov ecx, dword [eax + 4]
push edx
push ebx
push edi
lea edx, [esp + 0x68]
call fcn.00504d80
jmp 0x592bb4
mov eax, esi
imul eax, eax, 0x2710
cdq
idiv ebx
mov word [esp + 0x4c], ax
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x28]
mov edx, dword [esp + 0x34]
mov ebx, dword [esp + 0x18]
mov esi, dword [esp + 0x28]
mov dword [ecx], ebp
mov cx, word [esp + 0x4c]
mov dword [eax - 4], edx
mov edx, dword [esp + 0x3c]
mov dword [eax - 8], edi
mov edi, dword [esp + 0x80]
mov word [eax], cx
mov dword [eax + 4], edx
mov eax, dword [esp + 0x10]
cmp word [eax], 0x2710
mov ebp, dword [esi]
je 0x592c21
mov edx, dword [ebx + 0x1c]
mov ecx, eax
push ecx
mov ecx, dword [edx + 4]
call fcn.00504880
xor esi, esi
mov eax, dword [ebx + 0x68]
mov ecx, dword [eax + esi*4]
push ecx
mov ecx, dword [esp + 0x14]
call fcn.005192b0
movsx edx, ax
mov eax, dword [ebx + 0x68]
mov dword [eax + esi*4], edx
inc esi
cmp esi, ebp
jbe 0x592c03
mov eax, dword [esp + 0x10]
mov edx, dword [eax + 4]
test edx, edx
mov ecx, dword [eax - 8]
mov dword [esp + 0x3c], ecx
je 0x592c3c
mov edx, dword [esp + 0x1c]
mov byte [ecx + edx - 1], 0x2d
mov ecx, dword [esp + 0x20]
mov eax, dword [esp + 0x90]
add ecx, ebp
test eax, eax
mov dword [esp + 0x20], ecx
je 0x592c80
mov eax, dword [esp + 0x50]
cmp eax, dword [esp + 0x14]
jne 0x592c80
xor eax, eax
test ebp, ebp
jbe 0x592c80
mov ecx, dword [ebx + 0x68]
mov edx, dword [esp + 0x64]
add ecx, 4
jmp 0x592c70
cmp dword [ecx], edx
jg 0x592da4
inc eax
add ecx, 4
cmp eax, ebp
jb 0x592c70
mov esi, dword [esp + 0x24]
mov eax, dword [esp + 0x94]
mov ecx, dword [esp + 0x40]
mov edx, dword [ebx + 0x68]
push eax
mov eax, dword [esp + 0x40]
push ecx
mov ecx, dword [edx + eax*4]
push ecx
mov ecx, dword [esp + 0x28]
lea edx, [esp + 0x78]
push edx
mov edx, dword [ebx + 0x1c]
push ecx
mov ecx, dword [edx + 4]
push eax
call fcn.00560a50
mov eax, dword [esp + 0x6c]
test eax, eax
jl 0x592ce1
cmp eax, dword [esp + 0x74]
jge 0x592ce1
mov eax, dword [ebx + 0x1c]
test byte [eax + 0x60], 2
je 0x592ce1
mov eax, dword [esp + 0x84]
lea ecx, [esp + 0x6c]
push ecx
mov ecx, dword [eax + 0x10]
lea edx, [eax + 0x4c]
push edx
call fcn.005465d0
mov eax, dword [esp + 0x94]
test eax, eax
jne 0x592d3c
mov eax, dword [esp + 0x90]
test eax, eax
je 0x592d3c
test esi, esi
jl 0x592d36
cmp esi, ebp
jl 0x592d0a
jne 0x592d36
mov eax, dword [esp + 0x20]
cmp byte [eax], 0
jne 0x592d36
test byte [ebx + 0x58], 2
jne 0x592d33
mov ecx, dword [edi + 0x48]
mov edx, dword [ecx + 0x48]
mov eax, dword [esp + 0x40]
push edx
mov edx, dword [esp + 0x58]
push eax
mov eax, dword [esp + 0x44]
lea ecx, [esp + 0x74]
push ecx
push edx
push esi
push eax
mov ecx, ebx
call fcn.00592580
or esi, 0xffffffff
sub esi, ebp
mov dword [esp + 0x24], esi
mov eax, dword [esp + 0x34]
test eax, eax
je 0x592d53
mov ecx, dword [esp + 0x30]
push 1
push 0
push ecx
call dword [sym.imp.GDI32.dll_SetTextJustification]
mov ebp, dword [esp + 0x28]
mov esi, dword [esp + 0x10]
movsx edx, word [edi + 0x64]
mov eax, 0x14
add ebp, eax
add esi, eax
mov eax, dword [esp + 0x14]
inc eax
cmp eax, edx
mov dword [esp + 0x28], ebp
mov dword [esp + 0x10], esi
mov dword [esp + 0x14], eax
jl 0x592920
mov eax, dword [esp + 0x58]
test eax, eax
je 0x592edc
mov eax, dword [esp + 0x30]
push 0
push eax
call dword [sym.imp.GDI32.dll_SetTextCharacterExtra]
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x6c
ret 0x18
mov ecx, dword [edi + 0x48]
mov esi, eax
mov dword [ecx + 8], eax
mov eax, dword [esp + 0x14]
test eax, eax
mov dword [esp + 0x24], esi
jle 0x592dd5
xor ecx, ecx
mov edx, eax
lea esp, [esp]
mov eax, dword [edi + 0x48]
mov esi, dword [eax]
mov esi, dword [esi + ecx]
add dword [eax + 8], esi
add ecx, 0x14
dec edx
jne 0x592dc0
mov esi, dword [esp + 0x24]
mov eax, dword [edi + 0x48]
mov edx, dword [eax + 8]
add edx, dword [edi + 0x38]
mov dword [eax + 0xc], edx
jmp 0x592c84
mov ecx, dword [edi + 0x34]
movsx edx, word [ecx + 0x82]
mov esi, dword [esp + 0x8c]
mov ecx, dword [esp + 0x88]
push 0
push edx
push esi
lea eax, [esp + 0x78]
push eax
call fcn.005186e0
mov ebp, dword [esp + 0x84]
mov eax, dword [ebp + 0xc]
mov ecx, dword [eax + 0xc]
mov edx, dword [esp + 0x6c]
mov ebx, dword [esp + 0x74]
add edx, ecx
mov ecx, dword [esp + 0x78]
mov dword [esp + 0x6c], edx
mov edx, dword [eax + 0xc]
add ebx, edx
mov dword [esp + 0x74], ebx
add ecx, dword [eax + 0x10]
mov edx, dword [esp + 0x70]
mov dword [esp + 0x78], ecx
add edx, dword [eax + 0x10]
mov dword [esp + 0x70], edx
mov ebx, dword [eax + 0x1c]
mov bx, word [ebx]
sub bx, dx
movzx edx, bx
mov dword [esp + 0x70], edx
mov eax, dword [eax + 0x1c]
mov dx, word [eax]
sub dx, cx
mov ecx, dword [esp + 0x94]
movzx eax, dx
xor edx, edx
mov dl, byte [edi + 0x8a]
mov dword [esp + 0x78], eax
push ecx
movsx ecx, word [esi + 0x18]
xor eax, eax
mov al, byte [edi + 0x8b]
shr edx, 6
and edx, 1
push edx
push ecx
lea edx, [edi + 0x76]
push edx
mov edx, dword [edi + 0x38]
shr eax, 6
and eax, 1
push eax
mov eax, dword [edi + 0x7c]
push eax
lea ecx, [esp + 0x84]
push ecx
push edx
mov ecx, ebp
call fcn.00517e70
mov word [esi + 0x18], ax
mov eax, dword [esp + 0x6c]
test eax, eax
jl 0x592edc
cmp eax, dword [esp + 0x74]
jge 0x592edc
mov eax, dword [esp + 0x18]
mov ecx, dword [eax + 0x1c]
test byte [ecx + 0x60], 2
je 0x592edc
mov ecx, dword [ebp + 0x10]
lea edx, [esp + 0x6c]
push edx
lea eax, [ebp + 0x4c]
push eax
call fcn.005465d0
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x6c
ret 0x18