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

Disassembly:
sub esp, 0x60
push ebp
mov ebp, dword [esp + 0x68]
mov ecx, dword [ebp + 0x2bc]
xor eax, eax
push esi
mov esi, dword [ebp + 0x68]
test ecx, ecx
sete dl
push edi
mov edi, dword [ebp + 0x64]
mov dword [esp + 0x14], esi
mov dword [esp + 0x24], edi
mov dword [esp + 0x10], eax
mov dword [esp + 0x18], eax
mov byte [esp + 0x70], al
mov byte [esp + 0xf], dl
test dl, dl
je 0x10087ef4
mov ecx, dword [ebp + 0x204]
lea eax, [esp + 0x2c]
push eax
push esi
push 0x67766172
push ebp
call ecx
add esp, 0x10
mov dword [esp + 0x10], eax
test eax, eax
je 0x10087e5f
mov eax, dword [ebp + 0x204]
lea edx, [esp + 0x2c]
push edx
push esi
push 0x43464632
push ebp
call eax
add esp, 0x10
mov dword [esp + 0x10], eax
test eax, eax
jne 0x1008842e
mov edx, dword [ebp + 0x204]
lea ecx, [esp + 0x2c]
push ecx
push esi
push 0x66766172
push ebp
call edx
add esp, 0x10
mov dword [esp + 0x10], eax
test eax, eax
jne 0x1008842e
push esi
call fcn.100b57e0
mov dword [esp + 0x1c], eax
lea eax, [esp + 0x4c]
push eax
push 0x1016a7bc
push esi
call fcn.10050960
add esp, 0x10
mov dword [esp + 0x10], eax
test eax, eax
jne 0x1008842e
movzx ecx, word [esp + 0x4e]
movzx eax, word [esp + 0x54]
lea edx, [ecx*4 + 6]
lea ecx, [esp + 0x10]
push ecx
cmp eax, edx
push 0x50
push edi
sete byte [esp + 0x7c]
call fcn.10050b80
mov ecx, eax
mov eax, dword [esp + 0x1c]
add esp, 0xc
mov dword [ebp + 0x2bc], ecx
test eax, eax
jne 0x1008842e
movzx edi, word [esp + 0x4e]
mov dword [ecx], edi
mov eax, dword [esp + 0x10]
jmp 0x10087ef6
mov edi, dword [ecx]
movzx esi, word [ebp + 0xe]
push ebx
lea ebx, [esi + esi*2]
lea ebx, [ebx*4 + 3]
and ebx, 0xfffffffc
mov dword [esp + 0x20], ebx
mov ebx, esi
imul ebx, edi
lea edx, [edi + edi*2]
mov dword [esp + 0x38], ebx
lea ecx, [edi + edi + 3]
lea edx, [edx*8 + 3]
lea ebx, [ebx*4 + 3]
and ecx, 0xfffffffc
and edx, 0xfffffffc
and ebx, 0xfffffffc
cmp byte [esp + 0x13], 0
mov dword [esp + 0x48], esi
mov dword [esp + 0x3c], ecx
mov dword [esp + 0x40], edx
mov dword [esp + 0x2c], ebx
je 0x1008833c
lea eax, [edi + 4]
lea ebx, [ebx + eax*4]
add ebx, eax
add ebx, dword [esp + 0x20]
lea eax, [esp + 0x14]
add ebx, edx
mov edx, dword [ebp + 0x2bc]
add ebx, ecx
mov dword [edx + 0x10], ebx
mov ecx, dword [ebp + 0x2bc]
mov edx, dword [ecx + 0x10]
push eax
mov eax, dword [esp + 0x2c]
push edx
push eax
call fcn.10050b80
mov ebx, eax
mov eax, dword [esp + 0x20]
add esp, 0xc
test eax, eax
jne 0x1008842d
mov ecx, dword [ebp + 0x2bc]
mov edx, dword [esp + 0x3c]
mov dword [ecx + 0xc], ebx
mov ecx, dword [esp + 0x40]
lea eax, [ebx + 0x14]
mov dword [esp + 0x24], eax
add eax, edx
mov edx, dword [esp + 0x20]
mov dword [ebx + 0xc], eax
add eax, ecx
mov dword [ebx + 0x10], eax
add eax, edx
mov dword [ebx], edi
mov dword [ebx + 4], 0xffffffff
mov dword [ebx + 8], esi
test esi, esi
jbe 0x10087fe7
xor ecx, ecx
jmp 0x10087fd0
mov edx, dword [ebx + 0x10]
mov dword [ecx + edx], eax
lea edx, [edi*4]
add eax, edx
add ecx, 0xc
sub esi, 1
jne 0x10087fd0
mov eax, dword [ebx + 0x10]
add eax, dword [esp + 0x2c]
add eax, dword [esp + 0x20]
test edi, edi
jbe 0x10088011
xor ecx, ecx
mov edx, edi
lea ebx, [ebx]
mov esi, dword [ebx + 0xc]
mov dword [ecx + esi], eax
add eax, 5
add ecx, 0x18
sub edx, 1
jne 0x10088000
movzx eax, word [esp + 0x50]
add eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x18]
push eax
push ecx
call fcn.1004ea00
add esp, 8
mov dword [esp + 0x14], eax
test eax, eax
jne 0x1008842d
mov esi, dword [ebx + 0xc]
mov dword [esp + 0x1c], eax
test edi, edi
jbe 0x100880e7
mov eax, dword [esp + 0x18]
lea edx, [esp + 0x5c]
push edx
push 0x1016a7e0
push eax
call fcn.10050960
add esp, 0xc
mov dword [esp + 0x14], eax
test eax, eax
jne 0x1008842d
mov ecx, dword [esp + 0x60]
mov edx, dword [esp + 0x64]
mov eax, dword [esp + 0x5c]
mov dword [esi + 4], ecx
mov ecx, dword [esp + 0x68]
mov dword [esi + 8], edx
movzx edx, word [esp + 0x6e]
mov dword [esi + 0x10], eax
mov dword [esi + 0xc], ecx
mov ecx, dword [esi]
mov dword [esi + 0x14], edx
shr eax, 0x18
mov byte [ecx], al
mov edx, dword [esi]
mov al, byte [esi + 0x12]
mov byte [edx + 1], al
mov ecx, dword [esi]
mov dl, byte [esi + 0x11]
mov byte [ecx + 2], dl
mov eax, dword [esi]
mov cl, byte [esi + 0x10]
mov byte [eax + 3], cl
mov edx, dword [esi]
mov ecx, dword [esp + 0x24]
mov byte [edx + 4], 0
mov ax, word [esp + 0x6c]
mov word [ecx], ax
mov eax, dword [esi + 8]
cmp dword [esi + 4], eax
jg 0x100880c8
cmp eax, dword [esi + 0xc]
jle 0x100880ce
mov dword [esi + 4], eax
mov dword [esi + 0xc], eax
mov eax, dword [esp + 0x1c]
add dword [esp + 0x24], 2
inc eax
add esi, 0x18
mov dword [esp + 0x1c], eax
cmp eax, edi
jb 0x10088043
mov eax, dword [esp + 0x38]
mov ecx, dword [esp + 0x28]
lea edx, [esp + 0x14]
push edx
push 0
push eax
push 0
push 4
push ecx
call fcn.100526b0
mov edx, dword [ebp + 0x2bc]
mov dword [edx + 0x14], eax
mov eax, dword [esp + 0x2c]
add esp, 0x18
test eax, eax
jne 0x1008842d
mov cx, word [esp + 0x56]
test cx, cx
je 0x10088165
mov eax, dword [ebp + 0x2bc]
cmp byte [eax + 0x18], 0
jne 0x10088165
mov esi, dword [esp + 0x18]
push esi
call fcn.100b57e0
mov dword [esp + 0x3c], eax
mov eax, ebp
call fcn.100865e0
mov ecx, dword [esp + 0x3c]
push ecx
push esi
call fcn.1004ea00
add esp, 0xc
mov dword [esp + 0x14], eax
test eax, eax
jne 0x1008842d
mov cx, word [esp + 0x56]
jmp 0x10088169
mov esi, dword [esp + 0x18]
mov edx, dword [ebx + 0x10]
mov eax, dword [ebp + 0x2bc]
mov dword [esp + 0x18], edx
mov edx, dword [eax + 0x14]
xor eax, eax
mov dword [esp + 0x24], edx
mov dword [esp + 0x1c], 0
cmp ax, cx
jae 0x1008827b
xor ecx, ecx
cmp byte [esp + 0x74], al
setne cl
lea ecx, [ecx + ecx + 4]
lea edx, [ecx + edi*4]
mov dword [esp + 0x44], edx
mov eax, dword [esp + 0x44]
push eax
push esi
call fcn.10050860
add esp, 8
mov dword [esp + 0x14], eax
test eax, eax
jne 0x1008842d
push esi
call fcn.1004eb90
mov edx, dword [esp + 0x1c]
movzx ecx, ax
push esi
mov dword [edx + 4], ecx
call fcn.1004eb90
mov eax, dword [esp + 0x20]
mov ecx, dword [eax]
add esp, 8
mov dword [esp + 0x34], ecx
test edi, edi
jbe 0x1008820d
mov dword [esp + 0x38], edi
lea esp, [esp]
push esi
call fcn.1004ebf0
mov ecx, dword [esp + 0x38]
mov dword [ecx], eax
add ecx, 4
add esp, 4
sub dword [esp + 0x38], 1
mov dword [esp + 0x34], ecx
jne 0x100881f0
cmp byte [esp + 0x74], 0
je 0x10088229
push esi
call fcn.1004eb90
movzx edx, ax
mov eax, dword [esp + 0x1c]
add esp, 4
mov dword [eax + 8], edx
jmp 0x10088234
mov ecx, dword [esp + 0x18]
mov dword [ecx + 8], 0xffff
mov edx, dword [esp + 0x24]
mov eax, dword [esp + 0x18]
mov ecx, dword [eax]
push edx
push ecx
mov eax, edi
mov ecx, ebp
call fcn.10087af0
lea eax, [edi*4]
add dword [esp + 0x2c], eax
push esi
call fcn.10050930
mov cx, word [esp + 0x62]
mov eax, dword [esp + 0x28]
add dword [esp + 0x24], 0xc
movzx edx, cx
inc eax
add esp, 0xc
mov dword [esp + 0x1c], eax
cmp eax, edx
jb 0x100881a4
movzx eax, cx
cmp dword [esp + 0x48], eax
je 0x1008832f
mov esi, dword [ebp + 0x21c]
mov eax, dword [esi + 0x78]
lea ecx, [esp + 0x74]
push ecx
lea edx, [esp + 0x3c]
push edx
push 0x11
push ebp
call eax
movzx eax, al
add esp, 0x10
test eax, eax
je 0x100882b4
mov dword [esp + 0x34], 0x11
jmp 0x100882d8
mov eax, dword [esi + 0x78]
lea ecx, [esp + 0x74]
push ecx
lea edx, [esp + 0x3c]
push edx
push 2
push ebp
call eax
movzx eax, al
add esp, 0x10
test eax, eax
je 0x1008832f
mov dword [esp + 0x34], 2
mov eax, dword [esi + 0x78]
lea ecx, [esp + 0x74]
push ecx
lea edx, [esp + 0x3c]
push edx
push 6
push ebp
call eax
add esp, 0x10
test al, al
je 0x1008832f
movzx eax, word [esp + 0x56]
mov edx, dword [ebx + 0x10]
lea ecx, [eax + eax*2]
lea eax, [edx + ecx*4]
mov ecx, dword [esp + 0x34]
mov dword [eax + 4], ecx
mov dword [eax + 8], 6
mov ebx, dword [ebx + 0xc]
mov eax, dword [eax]
test edi, edi
jbe 0x1008832f
lea ecx, [ebx + 8]
mov edx, edi
jmp 0x10088320
mov esi, dword [ecx]
mov dword [eax], esi
add ecx, 0x18
add eax, 4
sub edx, 1
jne 0x10088320
push ebp
call fcn.10087540
mov eax, dword [esp + 0x18]
add esp, 4
cmp dword [esp + 0x78], 0
je 0x1008842d
mov eax, dword [ebp + 0x2bc]
mov ecx, dword [eax + 0x10]
lea edx, [esp + 0x14]
push edx
mov edx, dword [esp + 0x2c]
push ecx
push edx
call fcn.10050b80
mov ebx, eax
mov eax, dword [esp + 0x20]
add esp, 0xc
test eax, eax
jne 0x1008842d
mov ebp, dword [ebp + 0x2bc]
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp + 0xc]
push eax
push ecx
push ebx
call fcn.10105350
mov edx, dword [esp + 0x48]
mov ecx, dword [esp + 0x4c]
lea eax, [edx + ebx + 0x14]
mov edx, dword [esp + 0x2c]
mov dword [ebx + 0xc], eax
add eax, ecx
mov dword [ebx + 0x10], eax
xor ecx, ecx
add esp, 0xc
add eax, edx
cmp dword [ebx + 8], ecx
jbe 0x100883c3
lea ebp, [edi*4]
xor edx, edx
mov esi, dword [ebx + 0x10]
mov dword [edx + esi], eax
inc ecx
add eax, ebp
add edx, 0xc
cmp ecx, dword [ebx + 8]
jb 0x100883b2
mov ecx, dword [ebx + 0x10]
add ecx, dword [esp + 0x2c]
mov eax, dword [ebx + 0xc]
add ecx, dword [esp + 0x20]
test edi, edi
jbe 0x10088423
mov edx, dword [eax + 0x10]
mov dword [eax], ecx
cmp edx, 0x77676874
jne 0x100883ea
mov dword [eax], str.Weight
jmp 0x10088418
cmp edx, 0x77647468
jne 0x100883fa
mov dword [eax], str.Width
jmp 0x10088418
cmp edx, 0x6f70737a
jne 0x1008840a
mov dword [eax], str.OpticalSize
jmp 0x10088418
cmp edx, 0x736c6e74
jne 0x10088418
mov dword [eax], str.Slant
add ecx, 5
add eax, 0x18
sub edi, 1
jne 0x100883d5
mov eax, dword [esp + 0x78]
mov dword [eax], ebx
mov eax, dword [esp + 0x14]
pop ebx
pop edi
pop esi
pop ebp
add esp, 0x60
ret