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

Disassembly:
sub esp, 0x44
push ebx
push ebp
mov ebp, ecx
mov ecx, dword [ebp + 0xa0]
cmp dword [ecx + 0x9c], 0
push esi
mov esi, dword [ebp + 0x7c]
push edi
je 0x491e33
mov eax, dword [ecx + 0x2e8]
jmp 0x491e54
cmp dword [ecx + 0x78], 0
jne 0x491e4e
cmp dword [ecx + 0x84], 0
jne 0x491e4e
mov edx, dword [ecx + 0x2d0]
mov dword [esp + 0x20], edx
jmp 0x491e58
mov eax, dword [ecx + 0x16c]
mov dword [esp + 0x20], eax
mov eax, dword [ebp + 0x168]
mov edi, dword [0x5c3df4]
cdq
idiv edi
xor ebx, ebx
test edx, edx
mov edx, dword [esp + 0x20]
setne bl
dec edx
add ebx, eax
add ebx, esi
cmp edx, ebx
jge 0x491eae
cmp dword [ecx + 0x9c], 0
je 0x491e8d
mov eax, dword [ecx + 0x2e8]
dec eax
jmp 0x491ec4
cmp dword [ecx + 0x78], 0
jne 0x491ea5
cmp dword [ecx + 0x84], 0
jne 0x491ea5
mov eax, dword [ecx + 0x2d0]
dec eax
jmp 0x491ec4
mov eax, dword [ecx + 0x16c]
dec eax
jmp 0x491ec4
mov eax, dword [ebp + 0x168]
cdq
idiv edi
mov edi, eax
xor eax, eax
test edx, edx
setne al
add eax, edi
add eax, esi
mov dword [esp + 0x24], eax
mov eax, dword [ecx + 0x158]
imul eax, eax, 0x190
add eax, 0x5bd1d0
cmp esi, dword [esp + 0x24]
mov dword [esp + 0x10], eax
mov dword [esp + 0x18], esi
mov dword [esp + 0x20], 0
jg 0x4921eb
mov ebx, dword [esp + 0x5c]
jmp 0x491f00
mov ecx, dword [ebp + 0xa0]
push esi
call fcn.0048b9e0
lea ecx, [esp + 0x5c]
push ecx
mov ecx, dword [ebp + 0xa0]
mov edi, eax
push esi
mov dword [esp + 0x24], edi
call fcn.00471dd0
mov edx, dword [esp + 0x58]
mov eax, dword [esp + 0x5c]
push 0
push ebx
push edx
push edi
push eax
call fcn.0046f410
mov edi, eax
add esp, 0x14
test edi, edi
je 0x4921d2
push 0
push esi
lea ecx, [esp + 0x30]
push ecx
mov ecx, dword [ebp + 0xa0]
lea edx, [esp + 0x40]
push edx
call fcn.004745a0
jmp 0x491f60
mov eax, dword [esp + 0x28]
mov esi, edi
sub esi, dword [esp + 0x5c]
sar esi, 1
lea ecx, [esi + eax]
test ecx, ecx
je 0x491f96
movzx edx, word [edi - 2]
mov ecx, dword [esp + 0x10]
push edx
call fcn.00422ae0
test eax, eax
jne 0x491f96
movzx eax, word [edi]
mov ecx, dword [esp + 0x10]
push eax
call fcn.00422ae0
test eax, eax
je 0x491fc2
movzx eax, word [edi + ebx*2]
xor ecx, ecx
cmp cx, ax
je 0x491ff6
mov ecx, dword [esp + 0x10]
push eax
call fcn.00422ae0
test eax, eax
jne 0x491ff6
movzx edx, word [edi + ebx*2 - 2]
mov ecx, dword [esp + 0x10]
push edx
call fcn.00422ae0
test eax, eax
jne 0x491ff6
mov eax, dword [esp + 0x1c]
add esi, ebx
cmp esi, eax
jge 0x491ff6
mov ecx, dword [esp + 0x58]
mov edx, dword [esp + 0x5c]
push 0
push ebx
push ecx
sub eax, esi
push eax
lea eax, [edx + esi*2]
push eax
call fcn.0046f410
mov edi, eax
add esp, 0x14
test edi, edi
jne 0x491f60
jmp 0x4921ce
test edi, edi
je 0x4921ce
mov ecx, dword [ebp + 0xa0]
mov edx, dword [esp + 0x34]
cmp edx, dword [ecx + 0x190]
jne 0x49201c
cmp esi, dword [ecx + 0x194]
je 0x4921ce
mov eax, dword [ebp + 0x80]
imul eax, dword [0x5c3e08]
push 0
push 0
push 1
push 0
push esi
mov dword [esp + 0x44], eax
mov eax, dword [esp + 0x2c]
push eax
push 0
lea edx, [esp + 0x30]
push edx
push 0
mov dword [esp + 0x38], 0
call fcn.004791c0
mov eax, dword [esp + 0x14]
sub eax, dword [esp + 0x30]
cmp eax, dword [ebp + 0x164]
mov dword [esp + 0x44], eax
jg 0x4921ce
mov ecx, dword [0x5e3e3c]
lea eax, [esp + 0x3c]
push eax
push ebx
push edi
push ecx
call dword [sym.imp.GDI32.dll_GetTextExtentPoint32W]
mov ecx, dword [ebp + 0x80]
imul ecx, dword [0x5c3e08]
mov eax, dword [esp + 0x20]
mov edx, dword [0x5c3df4]
add edx, eax
mov dword [esp + 0x50], edx
mov edx, dword [ebp + 0x164]
mov dword [esp + 0x2c], esi
add esi, ebx
cmp esi, dword [esp + 0x1c]
lea eax, [ecx + edx*2]
mov dword [esp + 0x38], eax
jge 0x492169
jmp 0x4920c0
mov ecx, dword [esp + 0x58]
mov edx, dword [esp + 0x1c]
mov eax, dword [esp + 0x5c]
push 0
push ebx
push ecx
sub edx, esi
push edx
lea ecx, [eax + esi*2]
push ecx
call fcn.0046f410
mov edi, eax
add esp, 0x14
test edi, edi
je 0x492169
mov edx, dword [esp + 0x28]
mov esi, edi
sub esi, dword [esp + 0x5c]
sar esi, 1
lea eax, [esi + edx]
test eax, eax
je 0x49211f
movzx ecx, word [edi - 2]
push ecx
mov ecx, dword [esp + 0x14]
call fcn.00422ae0
test eax, eax
jne 0x49211f
movzx edx, word [edi]
mov ecx, dword [esp + 0x10]
push edx
call fcn.00422ae0
test eax, eax
je 0x49214f
movzx eax, word [edi + ebx*2]
xor ecx, ecx
cmp cx, ax
je 0x49214b
mov ecx, dword [esp + 0x10]
push eax
call fcn.00422ae0
test eax, eax
jne 0x49214b
movzx edx, word [edi + ebx*2 - 2]
mov ecx, dword [esp + 0x10]
push edx
call fcn.00422ae0
test eax, eax
je 0x49214f
mov dword [esp + 0x2c], esi
mov eax, dword [0x5c3e08]
add esi, ebx
imul eax, esi
cmp eax, dword [esp + 0x38]
jg 0x492169
cmp esi, dword [esp + 0x1c]
jl 0x4920c0
mov ecx, dword [esp + 0x2c]
mov edx, dword [esp + 0x18]
push 0
push 0
push 1
push 0
add ecx, ebx
push ecx
mov ecx, dword [ebp + 0xa0]
push edx
push 0
lea eax, [esp + 0x30]
push eax
push 0
mov dword [esp + 0x38], 0
call fcn.004791c0
mov eax, dword [esp + 0x14]
sub eax, dword [esp + 0x30]
mov esi, dword [esp + 0x44]
mov ecx, dword [ebp + 0x164]
xor edx, edx
test esi, esi
setl dl
dec edx
and edx, esi
cmp ecx, eax
jge 0x4921bb
mov eax, ecx
mov ecx, dword [esp + 0x50]
push ecx
push eax
mov eax, dword [esp + 0x28]
push eax
push edx
mov ecx, ebp
call fcn.0048faf0
mov esi, dword [esp + 0x18]
mov ecx, dword [0x5c3df4]
add dword [esp + 0x20], ecx
inc esi
cmp esi, dword [esp + 0x24]
mov dword [esp + 0x18], esi
jle 0x491f00
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x44
ret 8