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

Disassembly:
mov eax, 0x6c
call fcn.00609610
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 0x592f1a
mov eax, dword [edi + 0x48]
cmp eax, esi
je 0x592775
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.00504810
cmp dword [edi + 0x48], esi
mov ebp, 1
je 0x592e26
cmp dword [esp + 0x90], esi
jne 0x5927b4
cmp dword [esp + 0x38], esi
jne 0x5927b4
cmp word [edi + 0x64], bp
je 0x592e26
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.00504910
mov eax, dword [ebx + 0x1c]
mov ecx, dword [eax + 4]
call fcn.00504330
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 0x59284d
cmp dword [edi + 0x7c], 4
jne 0x59284d
test esi, esi
jle 0x59284d
movsx eax, word [edi + 0x66]
cdq
lea ebp, [esi + esi*4]
idiv ebp
cmp eax, 1
mov dword [esp + 0x2c], eax
jge 0x592840
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 0x592840
mov dword [esp + 0x2c], 1
jmp 0x59284d
cmp eax, 5
jle 0x59284d
mov dword [esp + 0x2c], 5
mov dx, word [0x75e4a8]
mov word [edi + 0x76], dx
mov ax, word [0x663ac8]
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 0x59287d
mov dword [esp + 0x40], eax
jmp 0x592891
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 0x5928cf
movzx eax, si
shl eax, 0x10
test eax, eax
mov dword [esp + 0x58], eax
je 0x5928cf
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 0x592920
test byte [ebx + 0x8c], 4
je 0x592920
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.00592660
mov ecx, dword [edi + 0x34]
movsx ecx, word [ecx + 0x82]
movsx eax, word [edi + 0x64]
cmp ecx, eax
mov dword [esp + 0x44], ecx
jg 0x59293a
mov dword [esp + 0x44], eax
test eax, eax
mov dword [esp + 0x14], 0
jle 0x592dc1
mov edx, dword [esp + 0x28]
add edx, 0xc
mov dword [esp + 0x10], edx
jmp 0x592960
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.00518700
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 [0x663ac8]
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 0x592a03
cmp dword [esp + 0x38], esi
je 0x592a2b
cmp byte [ebp], 0
mov eax, ebp
je 0x592a2b
jmp 0x592a20
mov byte [eax], 0x20
mov cl, byte [eax + 1]
inc eax
test cl, cl
jne 0x592a20
mov esi, dword [esp + 0x90]
test esi, esi
je 0x592a54
mov eax, dword [esp + 0x48]
test eax, eax
je 0x592a54
mov edx, dword [edi + 0x28]
mov edx, dword [edx + 0x6c]
push esi
mov ecx, ebp
call fcn.004ea0e0
mov dword [esp + 0x48], 0
cmp esi, 1
je 0x592aa1
mov esi, dword [esp + 0x28]
cmp dword [esi], 0xffffffff
je 0x592aa1
mov eax, dword [esp + 0x10]
mov eax, dword [eax - 4]
test eax, eax
mov dword [esp + 0x34], eax
je 0x592a85
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.00504e10
jmp 0x592c26
mov eax, ebp
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x592aa6
sub eax, edx
mov ebp, eax
mov edi, ebp
jne 0x592ac3
mov ecx, dword [ebx + 0x68]
mov dword [ecx], 0
jmp 0x592bf4
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.00504e10
mov ecx, dword [ebx + 0x68]
mov ebx, dword [ecx + ebp*4]
cmp ebx, esi
jle 0x592bf4
mov edx, dword [esp + 0x80]
movsx eax, word [edx + 0x64]
mov edx, dword [esp + 0x14]
dec eax
cmp edx, eax
je 0x592be4
push esi
mov edx, ebp
call fcn.004e9c80
cmp eax, ebp
mov ebx, dword [esp + 0x1c]
je 0x592b4e
mov edx, dword [esp + 0x2c]
lea ecx, [esp + 0x3c]
push ecx
push edx
push eax
mov eax, dword [esp + 0x2c]
push ebx
call fcn.00592490
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 0x592b43
sub eax, edx
mov edi, eax
mov eax, dword [esp + 0x80]
cmp dword [eax + 0x7c], 4
jne 0x592bf4
mov ecx, dword [esp + 0x20]
cmp byte [edi + ecx], 0
je 0x592bf4
mov eax, dword [esp + 0x3c]
test eax, eax
je 0x592b8e
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.00504e10
mov ecx, dword [esp + 0x18]
mov edx, dword [ecx + 0x68]
cmp esi, dword [edx + edi*4]
jle 0x592bf4
push esi
push edi
push ebx
call fcn.00592380
test eax, eax
mov dword [esp + 0x34], eax
jbe 0x592bf4
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 0x592bf4
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.00504e10
jmp 0x592bf4
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 0x592c61
mov edx, dword [ebx + 0x1c]
mov ecx, eax
push ecx
mov ecx, dword [edx + 4]
call fcn.00504910
xor esi, esi
mov eax, dword [ebx + 0x68]
mov ecx, dword [eax + esi*4]
push ecx
mov ecx, dword [esp + 0x14]
call fcn.005192d0
movsx edx, ax
mov eax, dword [ebx + 0x68]
mov dword [eax + esi*4], edx
inc esi
cmp esi, ebp
jbe 0x592c43
mov eax, dword [esp + 0x10]
mov edx, dword [eax + 4]
test edx, edx
mov ecx, dword [eax - 8]
mov dword [esp + 0x3c], ecx
je 0x592c7c
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 0x592cc0
mov eax, dword [esp + 0x50]
cmp eax, dword [esp + 0x14]
jne 0x592cc0
xor eax, eax
test ebp, ebp
jbe 0x592cc0
mov ecx, dword [ebx + 0x68]
mov edx, dword [esp + 0x64]
add ecx, 4
jmp 0x592cb0
cmp dword [ecx], edx
jg 0x592de4
inc eax
add ecx, 4
cmp eax, ebp
jb 0x592cb0
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.00560ae0
mov eax, dword [esp + 0x6c]
test eax, eax
jl 0x592d21
cmp eax, dword [esp + 0x74]
jge 0x592d21
mov eax, dword [ebx + 0x1c]
test byte [eax + 0x60], 2
je 0x592d21
mov eax, dword [esp + 0x84]
lea ecx, [esp + 0x6c]
push ecx
mov ecx, dword [eax + 0x10]
lea edx, [eax + 0x4c]
push edx
call fcn.005465c0
mov eax, dword [esp + 0x94]
test eax, eax
jne 0x592d7c
mov eax, dword [esp + 0x90]
test eax, eax
je 0x592d7c
test esi, esi
jl 0x592d76
cmp esi, ebp
jl 0x592d4a
jne 0x592d76
mov eax, dword [esp + 0x20]
cmp byte [eax], 0
jne 0x592d76
test byte [ebx + 0x58], 2
jne 0x592d73
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.005925c0
or esi, 0xffffffff
sub esi, ebp
mov dword [esp + 0x24], esi
mov eax, dword [esp + 0x34]
test eax, eax
je 0x592d93
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 0x592960
mov eax, dword [esp + 0x58]
test eax, eax
je 0x592f19
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 0x592e15
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 0x592e00
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 0x592cc4
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.00518700
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]
push ecx
mov dword [esp + 0x7c], eax
movsx eax, word [esi + 0x18]
lea ecx, [edi + 0x76]
shr edx, 6
and edx, 1
push edx
xor edx, edx
mov dl, byte [edi + 0x8b]
push eax
mov eax, dword [edi + 0x7c]
push ecx
lea ecx, [esp + 0x7c]
shr edx, 6
and edx, 1
push edx
mov edx, dword [edi + 0x38]
push eax
push ecx
push edx
mov ecx, ebp
call fcn.00517e90
mov word [esi + 0x18], ax
mov eax, dword [esp + 0x6c]
test eax, eax
jl 0x592f19
cmp eax, dword [esp + 0x74]
jge 0x592f19
mov eax, dword [esp + 0x18]
mov ecx, dword [eax + 0x1c]
test byte [ecx + 0x60], 2
je 0x592f19
mov ecx, dword [ebp + 0x10]
lea edx, [esp + 0x6c]
push edx
lea eax, [ebp + 0x4c]
push eax
call fcn.005465c0
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x6c
ret 0x18