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

Disassembly:
sub esp, 0x6c
mov eax, dword [0x4fe040]
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 0x42f866
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 0x42f998
push edi
call fcn.004024a5
mov dword [esp + 0x1c], eax
lea eax, [esp + 0x58]
push eax
push 0x4e1be0
push edi
call fcn.0040218a
add esp, 0x10
mov dword [esp + 0x14], eax
test eax, eax
jne 0x42f998
movzx eax, word [esp + 0x5e]
cmp esi, eax
jae 0x42f3aa
pop edi
pop esi
lea eax, [ebp + 8]
pop ebp
pop ebx
mov ecx, dword [esp + 0x68]
xor ecx, esp
call fcn.004018ca
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.00401a5a
mov ecx, eax
add esp, 0xc
mov eax, dword [esp + 0x14]
mov dword [ebx + 0x2e4], ecx
test eax, eax
jne 0x42f998
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.00401a5a
mov esi, eax
add esp, 0xc
mov eax, dword [esp + 0x14]
mov dword [esp + 0x28], esi
test eax, eax
jne 0x42f998
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 0x42f51d
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 0x42f500
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 0x42f54e
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 0x42f534
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.00401023
add esp, 8
mov dword [esp + 0x14], eax
test eax, eax
jne 0x42f998
mov esi, dword [esi + 0xc]
mov dword [esp + 0x18], eax
test ebp, ebp
je 0x42f622
nop dword [eax]
lea eax, [esp + 0x64]
push eax
push 0x4e1c04
push edi
call fcn.0040218a
add esp, 0xc
mov dword [esp + 0x14], eax
test eax, eax
jne 0x42f998
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 0x42f601
cmp eax, dword [esi + 0xc]
jle 0x42f607
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 0x42f580
lea eax, [esp + 0x14]
push eax
push 0
push dword [esp + 0x24]
push 0
push 4
push dword [esp + 0x54]
call fcn.00402252
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 0x42f998
mov cx, word [esp + 0x5e]
test cx, cx
je 0x42f693
mov eax, dword [ebx + 0x2e4]
cmp byte [eax + 0x18], 0
jne 0x42f693
push edi
call fcn.004024a5
push ebx
mov esi, eax
call fcn.0043b590
push esi
push edi
call fcn.00401023
add esp, 0x10
mov dword [esp + 0x14], eax
test eax, eax
jne 0x42f998
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 0x42f793
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.00402004
add esp, 8
mov dword [esp + 0x14], eax
test eax, eax
jne 0x42f998
push edi
call fcn.00401bc2
movzx eax, ax
push edi
mov dword [ebx + 4], eax
call fcn.00401bc2
mov esi, dword [ebx]
add esp, 8
test ebp, ebp
je 0x42f727
mov ebx, ebp
nop dword [eax + eax]
push edi
call fcn.00401c03
add esp, 4
mov dword [esi], eax
lea esi, [esi + 4]
sub ebx, 1
jne 0x42f710
mov ebx, dword [esp + 0x18]
cmp byte [esp + 0x13], 0
je 0x42f73c
push edi
call fcn.00401bc2
add esp, 4
movzx eax, ax
jmp 0x42f741
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.0043c700
lea eax, [ebp*4]
add esi, eax
push edi
mov dword [esp + 0x34], esi
call fcn.0040201d
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 0x42f6d8
mov esi, dword [esp + 0x28]
mov ebx, dword [esp + 0x2c]
movzx eax, cx
cmp dword [esp + 0x3c], eax
je 0x42f853
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 0x42f7d0
mov dword [esp + 0x18], 0x11
jmp 0x42f7f4
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 0x42f853
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 0x42f853
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 0x42f853
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 0x42f844
push ebx
call fcn.0043be60
mov eax, dword [esp + 0x18]
add esp, 4
mov edi, dword [esp + 0x24]
jmp 0x42f897
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 0x42f998
lea eax, [esp + 0x14]
push eax
mov eax, dword [ebx + 0x2e4]
push dword [eax + 0x10]
push dword [esp + 0x48]
call fcn.00401a5a
mov esi, eax
add esp, 0xc
mov eax, dword [esp + 0x14]
test eax, eax
jne 0x42f998
mov eax, dword [ebx + 0x2e4]
push dword [eax + 0x10]
push dword [eax + 0xc]
push esi
call sub.VCRUNTIME140.dll_memcpy
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 0x42f917
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 0x42f905
mov edx, dword [esp + 0x24]
add edx, dword [esp + 0x38]
add edx, dword [esi + 0x10]
mov eax, dword [esi + 0xc]
test ebp, ebp
je 0x42f98e
nop dword [eax]
mov ecx, dword [eax + 0x10]
mov dword [eax], edx
cmp ecx, 0x77676874
jne 0x42f945
mov dword [eax], str.Weight
jmp 0x42f983
cmp ecx, 0x77647468
jne 0x42f955
mov dword [eax], str.Width
jmp 0x42f983
cmp ecx, 0x6f70737a
jne 0x42f965
mov dword [eax], str.OpticalSize
jmp 0x42f983
cmp ecx, 0x736c6e74
jne 0x42f975
mov dword [eax], str.Slant
jmp 0x42f983
cmp ecx, 0x6974616c
jne 0x42f983
mov dword [eax], str.Italic
add edx, 5
add eax, 0x18
sub ebp, 1
jne 0x42f930
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.004018ca
add esp, 0x6c
ret