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

Disassembly:
sub esp, 0x6c
mov eax, dword [0x68f500]
xor eax, esp
mov dword [esp + 0x68], eax
mov eax, dword [esp + 0x74]
xor ecx, ecx
push ebx
mov ebx, dword [esp + 0x74]
push ebp
mov dword [esp + 0x40], eax
push esi
mov eax, dword [ebx + 0x64]
movzx esi, word [ebx + 0xe]
mov ebp, dword [ebx + 0x2e4]
mov dword [esp + 0x3c], eax
xor eax, eax
mov dword [esp + 0x28], ebx
mov dword [esp + 0x10], eax
mov dword [esp + 0x50], eax
mov dword [esp + 0x54], ecx
mov dword [esp + 0x58], ecx
mov word [esp + 0x5c], cx
mov dword [esp + 0x38], esi
push edi
mov edi, dword [ebx + 0x68]
mov dword [esp + 0x44], edi
test ebp, ebp
jne 0x4c60c6
lea eax, [esp + 0x50]
push eax
mov eax, dword [ebx + 0x204]
push edi
push 0x66766172
push ebx
call eax
add esp, 0x10
mov dword [esp + 0x14], eax
test eax, eax
jne 0x4c61f8
push edi
call fcn.004b9310
mov dword [esp + 0x1c], eax
lea eax, [esp + 0x58]
push eax
push 0x5f7e28
push edi
call fcn.004b9490
add esp, 0x10
mov dword [esp + 0x14], eax
test eax, eax
jne 0x4c61f8
movzx eax, word [esp + 0x5e]
cmp esi, eax
jae 0x4c5c0a
pop edi
pop esi
lea eax, [ebp + 8]
pop ebp
pop ebx
mov ecx, dword [esp + 0x68]
xor ecx, esp
call fcn.005ab3d6
add esp, 0x6c
ret
movzx eax, word [esp + 0x5a]
lea ecx, [eax*4 + 6]
movzx eax, word [esp + 0x60]
cmp eax, ecx
lea eax, [esp + 0x14]
push eax
push 0x50
push dword [esp + 0x48]
sete byte [esp + 0x1f]
call fcn.004bb350
mov ecx, eax
add esp, 0xc
mov eax, dword [esp + 0x14]
mov dword [ebx + 0x2e4], ecx
test eax, eax
jne 0x4c61f8
movzx ebp, word [esp + 0x5a]
lea edx, [esi + esi*2]
mov dword [ecx], ebp
mov eax, esi
imul eax, ebp
shl edx, 2
lea ecx, [ebp*2 + 3]
mov dword [esp + 0x24], edx
and ecx, 0xfffffffc
mov dword [esp + 0x30], ecx
lea ecx, [ebp*2]
add ecx, ebp
mov dword [esp + 0x1c], eax
shl ecx, 3
mov dword [esp + 0x34], ecx
lea ecx, [eax*4]
mov dword [esp + 0x38], ecx
lea eax, [ebp + 4]
lea ecx, [ecx + eax*4]
add ecx, eax
mov eax, dword [ebx + 0x2e4]
add ecx, edx
add ecx, dword [esp + 0x34]
add ecx, dword [esp + 0x30]
mov dword [eax + 0x10], ecx
lea eax, [esp + 0x14]
push eax
mov eax, dword [ebx + 0x2e4]
push dword [eax + 0x10]
push dword [esp + 0x48]
call fcn.004bb350
mov esi, eax
add esp, 0xc
mov eax, dword [esp + 0x14]
mov dword [esp + 0x28], esi
test eax, eax
jne 0x4c61f8
mov eax, dword [ebx + 0x2e4]
mov edx, dword [esp + 0x24]
mov ecx, dword [esp + 0x3c]
mov dword [eax + 0xc], esi
lea eax, [esi + 0x14]
mov dword [esp + 0x20], eax
add eax, dword [esp + 0x30]
mov dword [esi + 0xc], eax
add eax, dword [esp + 0x34]
add edx, eax
mov dword [esi], ebp
mov dword [esi + 4], 0xffffffff
mov dword [esi + 8], ecx
mov dword [esi + 0x10], eax
test ecx, ecx
je 0x4c5d7d
mov esi, dword [esp + 0x3c]
lea eax, [ebp*4]
mov ebx, dword [esp + 0x28]
xor ecx, ecx
mov dword [esp + 0x4c], eax
mov eax, dword [esp + 0x18]
mov edi, dword [esp + 0x4c]
mov dword [esp + 0x18], eax
mov al, byte [esp + 0x13]
mov byte [esp + 0x13], al
mov eax, dword [esp + 0x30]
mov dword [esp + 0x30], eax
mov eax, dword [esp + 0x34]
mov dword [esp + 0x34], eax
mov eax, dword [esp + 0x24]
mov dword [esp + 0x24], eax
mov eax, dword [esp + 0x1c]
mov dword [esp + 0x1c], eax
mov eax, dword [esp + 0x38]
mov dword [esp + 0x38], eax
nop dword [eax]
mov eax, dword [ebx + 0x10]
lea ecx, [ecx + 0xc]
mov dword [ecx + eax - 0xc], edx
add edx, edi
sub esi, 1
jne 0x4c5d60
mov edi, dword [esp + 0x44]
mov ebx, dword [esp + 0x2c]
mov esi, dword [esp + 0x28]
mov ecx, dword [esi + 0x10]
add ecx, dword [esp + 0x38]
add ecx, dword [esp + 0x24]
test ebp, ebp
je 0x4c5dae
mov ebx, dword [esp + 0x28]
xor edx, edx
mov esi, ebp
mov eax, dword [ebx + 0xc]
lea edx, [edx + 0x18]
mov dword [edx + eax - 0x18], ecx
add ecx, 5
sub esi, 1
jne 0x4c5d94
mov ebx, dword [esp + 0x2c]
mov esi, dword [esp + 0x28]
movzx eax, word [esp + 0x58]
add eax, dword [esp + 0x18]
push eax
push edi
call fcn.004b99b0
add esp, 8
mov dword [esp + 0x14], eax
test eax, eax
jne 0x4c61f8
mov esi, dword [esi + 0xc]
mov dword [esp + 0x18], eax
test ebp, ebp
je 0x4c5e82
nop dword [eax]
lea eax, [esp + 0x64]
push eax
push 0x5f7e4c
push edi
call fcn.004b9490
add esp, 0xc
mov dword [esp + 0x14], eax
test eax, eax
jne 0x4c61f8
mov eax, dword [esp + 0x68]
mov ecx, dword [esp + 0x64]
mov dword [esi + 4], eax
mov eax, dword [esp + 0x6c]
mov dword [esi + 8], eax
mov eax, dword [esp + 0x70]
mov dword [esi + 0xc], eax
movzx eax, word [esp + 0x76]
mov dword [esi + 0x14], eax
mov eax, dword [esi]
mov dword [esi + 0x10], ecx
shr ecx, 0x18
mov byte [eax], cl
mov ecx, dword [esi]
mov al, byte [esi + 0x12]
mov byte [ecx + 1], al
mov ecx, dword [esi]
mov al, byte [esi + 0x11]
mov byte [ecx + 2], al
mov ecx, dword [esi]
mov al, byte [esi + 0x10]
mov byte [ecx + 3], al
mov eax, dword [esi]
mov ecx, dword [esp + 0x20]
mov byte [eax + 4], 0
mov ax, word [esp + 0x74]
mov word [ecx], ax
mov eax, dword [esi + 8]
cmp dword [esi + 4], eax
jg 0x4c5e61
cmp eax, dword [esi + 0xc]
jle 0x4c5e67
mov dword [esi + 4], eax
mov dword [esi + 0xc], eax
mov eax, dword [esp + 0x18]
add ecx, 2
inc eax
mov dword [esp + 0x20], ecx
add esi, 0x18
mov dword [esp + 0x18], eax
cmp eax, ebp
jb 0x4c5de0
lea eax, [esp + 0x14]
push eax
push 0
push dword [esp + 0x24]
push 0
push 4
push dword [esp + 0x54]
call fcn.004bb520
mov ecx, eax
add esp, 0x18
mov eax, dword [ebx + 0x2e4]
mov dword [eax + 0x14], ecx
mov eax, dword [esp + 0x14]
test eax, eax
jne 0x4c61f8
mov cx, word [esp + 0x5e]
test cx, cx
je 0x4c5ef3
mov eax, dword [ebx + 0x2e4]
cmp byte [eax + 0x18], 0
jne 0x4c5ef3
push edi
call fcn.004b9310
push ebx
mov esi, eax
call fcn.004cf570
push esi
push edi
call fcn.004b99b0
add esp, 0x10
mov dword [esp + 0x14], eax
test eax, eax
jne 0x4c61f8
mov cx, word [esp + 0x5e]
mov eax, dword [esp + 0x2c]
mov esi, dword [esp + 0x28]
mov dword [esp + 0x1c], 0
mov eax, dword [eax + 0x2e4]
mov ebx, dword [esi + 0x10]
mov dword [esp + 0x18], ebx
mov eax, dword [eax + 0x14]
mov dword [esp + 0x20], eax
xor eax, eax
cmp ax, cx
jae 0x4c5ff3
movzx eax, byte [esp + 0x13]
lea ecx, [ebp*4]
add eax, 2
lea eax, [ecx + eax*2]
mov dword [esp + 0x44], eax
push eax
push edi
call fcn.004b8f10
add esp, 8
mov dword [esp + 0x14], eax
test eax, eax
jne 0x4c61f8
push edi
call fcn.004b9140
movzx eax, ax
push edi
mov dword [ebx + 4], eax
call fcn.004b9140
mov esi, dword [ebx]
add esp, 8
test ebp, ebp
je 0x4c5f87
mov ebx, ebp
nop dword [eax + eax]
push edi
call fcn.004b90a0
add esp, 4
mov dword [esi], eax
lea esi, [esi + 4]
sub ebx, 1
jne 0x4c5f70
mov ebx, dword [esp + 0x18]
cmp byte [esp + 0x13], 0
je 0x4c5f9c
push edi
call fcn.004b9140
add esp, 4
movzx eax, ax
jmp 0x4c5fa1
mov eax, 0xffff
mov dword [ebx + 8], eax
mov esi, dword [esp + 0x20]
push esi
push dword [ebx]
push ebp
push dword [esp + 0x38]
call fcn.004d0370
lea eax, [ebp*4]
add esi, eax
push edi
mov dword [esp + 0x34], esi
call fcn.004b8fe0
mov esi, dword [esp + 0x30]
add ebx, 0xc
mov cx, word [esp + 0x72]
inc esi
movzx eax, cx
add esp, 0x14
cmp esi, eax
mov dword [esp + 0x1c], esi
mov eax, dword [esp + 0x44]
mov dword [esp + 0x18], ebx
jb 0x4c5f38
mov esi, dword [esp + 0x28]
mov ebx, dword [esp + 0x2c]
movzx eax, cx
cmp dword [esp + 0x3c], eax
je 0x4c60b3
mov edi, dword [ebx + 0x21c]
lea eax, [esp + 0x20]
push eax
lea eax, [esp + 0x20]
push eax
mov eax, dword [edi + 0xa8]
push 0x11
push ebx
call eax
add esp, 0x10
test al, al
je 0x4c6030
mov dword [esp + 0x18], 0x11
jmp 0x4c6054
lea eax, [esp + 0x20]
push eax
lea eax, [esp + 0x20]
push eax
mov eax, dword [edi + 0xa8]
push 2
push ebx
call eax
add esp, 0x10
test al, al
je 0x4c60b3
mov dword [esp + 0x18], 2
lea eax, [esp + 0x20]
push eax
lea eax, [esp + 0x20]
push eax
mov eax, dword [edi + 0xa8]
push 6
push ebx
call eax
add esp, 0x10
test al, al
je 0x4c60b3
mov eax, dword [esp + 0x3c]
mov edx, dword [esp + 0x18]
mov dword [ebx + 0x2f4], eax
movzx eax, word [esp + 0x5e]
lea ecx, [eax + eax*2]
mov eax, dword [esi + 0x10]
mov dword [eax + ecx*4 + 4], edx
mov edx, dword [eax + ecx*4]
mov dword [eax + ecx*4 + 8], 6
mov esi, dword [esi + 0xc]
test ebp, ebp
je 0x4c60b3
lea ecx, [esi + 8]
mov esi, ebp
mov eax, dword [ecx]
lea ecx, [ecx + 0x18]
mov dword [edx], eax
lea edx, [edx + 4]
sub esi, 1
jne 0x4c60a4
push ebx
call fcn.004cfc90
mov eax, dword [esp + 0x18]
add esp, 4
mov edi, dword [esp + 0x24]
jmp 0x4c60f7
mov ebp, dword [ebp]
lea edi, [esi + esi*2]
mov ecx, ebp
shl edi, 2
mov dword [esp + 0x24], edi
lea edx, [ecx*2 + 3]
and edx, 0xfffffffc
mov dword [esp + 0x30], edx
lea edx, [ecx + ecx*2]
imul ecx, esi
shl edx, 3
mov dword [esp + 0x34], edx
shl ecx, 2
mov dword [esp + 0x38], ecx
cmp dword [esp + 0x48], 0
je 0x4c61f8
lea eax, [esp + 0x14]
push eax
mov eax, dword [ebx + 0x2e4]
push dword [eax + 0x10]
push dword [esp + 0x48]
call fcn.004bb350
mov esi, eax
add esp, 0xc
mov eax, dword [esp + 0x14]
test eax, eax
jne 0x4c61f8
mov eax, dword [ebx + 0x2e4]
push dword [eax + 0x10]
push dword [eax + 0xc]
push esi
call fcn.005ad5b0
mov eax, dword [esp + 0x3c]
add esp, 0xc
add eax, 0x14
add eax, esi
mov dword [esi + 0xc], eax
add eax, dword [esp + 0x34]
mov dword [esi + 0x10], eax
lea edx, [eax + edi]
xor edi, edi
cmp dword [esi + 8], edi
jbe 0x4c6177
lea ebx, [ebp*4]
xor ecx, ecx
mov eax, dword [esi + 0x10]
lea ecx, [ecx + 0xc]
inc edi
mov dword [ecx + eax - 0xc], edx
add edx, ebx
cmp edi, dword [esi + 8]
jb 0x4c6165
mov edx, dword [esp + 0x24]
add edx, dword [esp + 0x38]
add edx, dword [esi + 0x10]
mov eax, dword [esi + 0xc]
test ebp, ebp
je 0x4c61ee
nop dword [eax]
mov ecx, dword [eax + 0x10]
mov dword [eax], edx
cmp ecx, 0x77676874
jne 0x4c61a5
mov dword [eax], str.Weight
jmp 0x4c61e3
cmp ecx, 0x77647468
jne 0x4c61b5
mov dword [eax], str.Width
jmp 0x4c61e3
cmp ecx, 0x6f70737a
jne 0x4c61c5
mov dword [eax], str.OpticalSize
jmp 0x4c61e3
cmp ecx, 0x736c6e74
jne 0x4c61d5
mov dword [eax], str.Slant
jmp 0x4c61e3
cmp ecx, 0x6974616c
jne 0x4c61e3
mov dword [eax], str.Italic
add edx, 5
add eax, 0x18
sub ebp, 1
jne 0x4c6190
mov eax, dword [esp + 0x48]
mov dword [eax], esi
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x78]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.005ab3d6
add esp, 0x6c
ret