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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x74
mov eax, dword [0x10304724]
xor eax, esp
mov dword [esp + 0x70], eax
mov edx, dword [ebp + 8]
mov eax, dword [ebp + 0xc]
push ebx
push esi
mov esi, dword [edx + 0x68]
mov dword [esp + 0x50], eax
mov eax, dword [edx + 0x64]
push edi
xor edi, edi
mov dword [esp + 0x40], eax
mov eax, dword [edx + 0x2e0]
mov dword [esp + 0x14], edx
mov dword [esp + 0x1c], esi
mov dword [esp + 0x18], edi
mov dword [esp + 0x28], edi
mov byte [esp + 0x13], 0
mov dword [esp + 0x20], eax
test eax, eax
jne 0x1004b7a1
lea eax, [esp + 0x50]
push eax
mov eax, dword [edx + 0x204]
push esi
push 0x67766172
push edx
call eax
mov ebx, dword [esp + 0x24]
add esp, 0x10
test eax, eax
je 0x1004b6f4
lea eax, [esp + 0x50]
push eax
mov eax, dword [ebx + 0x204]
push esi
push 0x43464632
push ebx
call eax
mov edi, eax
add esp, 0x10
test edi, edi
jne 0x1004be44
lea eax, [esp + 0x50]
push eax
mov eax, dword [ebx + 0x204]
push esi
push 0x66766172
push ebx
call eax
mov edi, eax
add esp, 0x10
test edi, edi
jne 0x1004be44
mov eax, dword [esi + 8]
mov edx, 0x1023fbb4
mov dword [esp + 0x28], eax
mov ecx, esi
lea eax, [esp + 0x58]
push eax
call fcn.1000ddf0
mov edi, eax
add esp, 4
test edi, edi
jne 0x1004be44
movzx ebx, word [esp + 0x5e]
movzx eax, word [esp + 0x64]
push 0x50
mov dword [esp + 0x28], ebx
lea ecx, [ebx*4 + 6]
cmp eax, ecx
mov eax, dword [esp + 0x44]
push eax
sete byte [esp + 0x1b]
mov eax, dword [eax + 4]
call eax
add esp, 8
mov dword [esp + 0x44], eax
test eax, eax
jne 0x1004b772
lea edi, [eax + 0x40]
jmp 0x1004b783
push 0x50
push 0
push eax
call sub.VCRUNTIME140.dll_memset
mov eax, dword [esp + 0x50]
add esp, 0xc
mov edx, dword [esp + 0x14]
mov dword [esp + 0x18], edi
mov dword [edx + 0x2e0], eax
test edi, edi
jne 0x1004be44
mov dword [eax], ebx
mov eax, dword [esp + 0x20]
jmp 0x1004b7a7
mov ebx, dword [eax]
mov dword [esp + 0x24], ebx
movzx ecx, word [edx + 0xe]
lea esi, [ebx*2 + 3]
and esi, 0xfffffffc
mov dword [esp + 0x34], ecx
mov dword [esp + 0x48], esi
lea esi, [ebx + ebx*2]
shl esi, 3
mov dword [esp + 0x4c], esi
lea esi, [ecx + ecx*2]
imul ecx, ebx
shl esi, 2
mov dword [esp + 0x38], esi
mov esi, dword [esp + 0x1c]
mov dword [esp + 0x2c], ecx
shl ecx, 2
mov dword [esp + 0x44], ecx
test eax, eax
jne 0x1004bd0c
lea eax, [ebx + 4]
lea ecx, [ecx + eax*4]
add ecx, eax
mov eax, dword [edx + 0x2e0]
add ecx, dword [esp + 0x38]
add ecx, dword [esp + 0x4c]
add ecx, dword [esp + 0x48]
mov dword [eax + 0x10], ecx
lea eax, [esp + 0x18]
mov edx, dword [edx + 0x2e0]
mov ecx, dword [esp + 0x40]
push eax
mov edx, dword [edx + 0x10]
call fcn.1000e170
mov edi, dword [esp + 0x1c]
add esp, 4
mov dword [esp + 0x30], eax
test edi, edi
jne 0x1004be44
mov ecx, dword [esp + 0x14]
mov edi, eax
mov edx, dword [esp + 0x38]
mov ecx, dword [ecx + 0x2e0]
lea eax, [edi + 0x14]
mov dword [esp + 0x18], eax
add eax, dword [esp + 0x48]
mov dword [ecx + 0xc], edi
mov ecx, dword [esp + 0x34]
mov dword [edi + 0xc], eax
add eax, dword [esp + 0x4c]
add edx, eax
mov dword [edi], ebx
mov dword [edi + 4], 0xffffffff
mov dword [edi + 8], ecx
mov dword [edi + 0x10], eax
test ecx, ecx
je 0x1004b8b0
mov edi, dword [esp + 0x34]
lea eax, [ebx*4]
mov esi, dword [esp + 0x30]
xor ecx, ecx
mov dword [esp + 0x20], eax
mov ebx, eax
nop word [eax + eax]
mov eax, dword [esi + 0x10]
lea ecx, [ecx + 0xc]
mov dword [ecx + eax - 0xc], edx
add edx, ebx
sub edi, 1
jne 0x1004b890
mov edi, dword [esp + 0x30]
mov esi, dword [esp + 0x1c]
mov ebx, dword [esp + 0x24]
mov eax, dword [edi + 0x10]
mov ecx, dword [esp + 0x44]
add ecx, eax
add ecx, dword [esp + 0x38]
test ebx, ebx
je 0x1004b8d2
xor edx, edx
mov eax, dword [edi + 0xc]
lea edx, [edx + 0x18]
mov dword [edx + eax - 0x18], ecx
add ecx, 5
sub ebx, 1
jne 0x1004b8c0
movzx ebx, word [esp + 0x5c]
xor edi, edi
add ebx, dword [esp + 0x28]
mov eax, dword [esi + 0x14]
test eax, eax
je 0x1004b8f8
push edi
push edi
push ebx
push esi
call eax
add esp, 0x10
test eax, eax
je 0x1004b904
mov edi, 0x55
jmp 0x1004b907
cmp ebx, dword [esi + 4]
jbe 0x1004b904
mov edi, 0x55
jmp 0x1004b907
mov dword [esi + 8], ebx
test edi, edi
jne 0x1004be44
mov eax, dword [esp + 0x30]
mov dword [esp + 0x1c], edi
mov ebx, dword [eax + 0xc]
cmp dword [esp + 0x24], edi
jbe 0x1004b9c7
lea eax, [esp + 0x68]
mov edx, 0x1023f990
push eax
mov ecx, esi
call fcn.1000ddf0
mov edi, eax
add esp, 4
test edi, edi
jne 0x1004be44
mov eax, dword [esp + 0x6c]
mov ecx, dword [esp + 0x68]
mov dword [ebx + 4], eax
mov eax, dword [esp + 0x70]
mov dword [ebx + 8], eax
mov eax, dword [esp + 0x74]
mov dword [ebx + 0xc], eax
movzx eax, word [esp + 0x7a]
mov dword [ebx + 0x14], eax
mov eax, dword [ebx]
mov dword [ebx + 0x10], ecx
shr ecx, 0x18
mov byte [eax], cl
mov ecx, dword [ebx]
mov al, byte [ebx + 0x12]
mov byte [ecx + 1], al
mov ecx, dword [ebx]
mov al, byte [ebx + 0x11]
mov byte [ecx + 2], al
mov ecx, dword [ebx]
mov al, byte [ebx + 0x10]
mov byte [ecx + 3], al
mov eax, dword [ebx]
mov ecx, dword [esp + 0x18]
mov byte [eax + 4], 0
mov ax, word [esp + 0x78]
mov word [ecx], ax
mov eax, dword [ebx + 8]
cmp dword [ebx + 4], eax
jg 0x1004b9a4
cmp eax, dword [ebx + 0xc]
jle 0x1004b9aa
mov dword [ebx + 4], eax
mov dword [ebx + 0xc], eax
mov eax, dword [esp + 0x1c]
add ecx, 2
inc eax
mov dword [esp + 0x18], ecx
add ebx, 0x18
mov dword [esp + 0x1c], eax
cmp eax, dword [esp + 0x24]
jb 0x1004b924
mov eax, dword [esp + 0x2c]
xor ebx, ebx
xor edi, edi
test eax, eax
js 0x1004ba1c
je 0x1004ba18
cmp eax, 0x1fffffff
jle 0x1004b9e1
lea edi, [ebx + 0xa]
jmp 0x1004ba21
shl eax, 2
push eax
mov dword [esp + 0x24], eax
mov eax, dword [esp + 0x44]
push eax
mov eax, dword [eax + 4]
call eax
mov ebx, eax
add esp, 8
test ebx, ebx
jne 0x1004ba01
lea edi, [eax + 0x40]
jmp 0x1004ba21
cmp dword [esp + 0x2c], edi
jle 0x1004ba21
push dword [esp + 0x20]
push 0
push ebx
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
jmp 0x1004ba21
xor ebx, ebx
jmp 0x1004ba21
mov edi, 6
mov ecx, dword [esp + 0x14]
mov eax, dword [ecx + 0x2e0]
mov dword [eax + 0x14], ebx
test edi, edi
jne 0x1004be44
mov ax, word [esp + 0x62]
mov word [esp + 0x2c], ax
test ax, ax
je 0x1004ba8f
mov eax, dword [ecx + 0x2e0]
cmp byte [eax + 0x18], 0
jne 0x1004ba8f
mov ebx, dword [esi + 8]
call fcn.10049b90
mov eax, dword [esi + 0x14]
test eax, eax
je 0x1004ba74
push edi
push edi
push ebx
push esi
call eax
add esp, 0x10
test eax, eax
je 0x1004ba80
mov edi, 0x55
jmp 0x1004ba83
cmp ebx, dword [esi + 4]
jbe 0x1004ba80
mov edi, 0x55
jmp 0x1004ba83
mov dword [esi + 8], ebx
test edi, edi
jne 0x1004be44
mov ecx, dword [esp + 0x14]
mov eax, dword [esp + 0x30]
mov dword [esp + 0x20], 0
mov ebx, dword [eax + 0x10]
mov eax, dword [ecx + 0x2e0]
mov dword [esp + 0x18], ebx
mov eax, dword [eax + 0x14]
mov dword [esp + 0x1c], eax
movzx eax, word [esp + 0x2c]
test eax, eax
je 0x1004bc5f
mov eax, dword [esp + 0x24]
lea ecx, [eax*4]
movzx eax, byte [esp + 0x13]
add eax, 2
lea eax, [ecx + eax*2]
mov dword [esp + 0x3c], eax
jmp 0x1004badc
mov ebx, dword [esp + 0x18]
mov edx, eax
mov ecx, esi
call fcn.1000d940
mov edi, eax
mov dword [esp + 0x28], edi
test edi, edi
jne 0x1004be44
mov ecx, dword [esi + 0x20]
xor edx, edx
lea eax, [ecx + 1]
cmp eax, dword [esi + 0x24]
jae 0x1004bb0f
movzx edx, byte [ecx]
add ecx, 2
shl edx, 8
movzx eax, byte [ecx - 1]
or edx, eax
mov dword [esi + 0x20], ecx
mov dword [ebx + 4], edx
mov edx, dword [esi + 0x20]
lea eax, [edx + 1]
cmp eax, dword [esi + 0x24]
lea ecx, [edx + 2]
mov eax, dword [esp + 0x24]
cmovae ecx, edx
mov dword [esi + 0x20], ecx
mov ebx, dword [ebx]
test eax, eax
je 0x1004bb72
mov edi, eax
mov edx, dword [esi + 0x20]
xor eax, eax
lea ecx, [edx + 3]
cmp ecx, dword [esi + 0x24]
jae 0x1004bb61
movzx eax, byte [edx]
add edx, 4
shl eax, 8
movzx ecx, byte [edx - 3]
or eax, ecx
movzx ecx, byte [edx - 2]
shl eax, 8
or eax, ecx
movzx ecx, byte [edx - 1]
shl eax, 8
or eax, ecx
mov dword [esi + 0x20], edx
mov dword [ebx], eax
add ebx, 4
sub edi, 1
jne 0x1004bb33
mov edi, dword [esp + 0x28]
cmp byte [esp + 0x13], 0
je 0x1004bb9a
mov edx, dword [esi + 0x20]
xor ecx, ecx
lea eax, [edx + 1]
cmp eax, dword [esi + 0x24]
jae 0x1004bb95
movzx ecx, byte [edx]
add edx, 2
shl ecx, 8
movzx eax, byte [edx - 1]
or ecx, eax
mov dword [esi + 0x20], edx
jmp 0x1004bb9f
mov ecx, 0xffff
mov eax, dword [esp + 0x18]
push dword [esp + 0x1c]
mov ebx, dword [esp + 0x28]
mov edx, ebx
mov dword [eax + 8], ecx
push dword [eax]
mov ecx, dword [esp + 0x1c]
call fcn.1004b370
lea eax, [ebx*4]
add esp, 8
add dword [esp + 0x1c], eax
cmp dword [esi + 0x14], 0
je 0x1004bbe8
mov eax, dword [esi]
mov ecx, dword [esi + 0x1c]
test eax, eax
je 0x1004bbe2
push eax
mov eax, dword [ecx + 8]
push ecx
call eax
add esp, 8
mov dword [esi], 0
mov eax, dword [esp + 0x20]
movzx ecx, word [esp + 0x2c]
inc eax
add dword [esp + 0x18], 0xc
cmp eax, ecx
mov dword [esp + 0x20], eax
mov eax, dword [esp + 0x3c]
mov dword [esi + 0x20], 0
mov dword [esi + 0x24], 0
jb 0x1004bad8
mov ecx, dword [esp + 0x14]
movzx eax, word [esp + 0x2c]
cmp dword [esp + 0x34], eax
je 0x1004bcff
mov eax, dword [ecx + 0x21c]
lea edx, [esp + 0x20]
push edx
lea edx, [esp + 0x38]
mov dword [esp + 0x20], eax
push edx
mov eax, dword [eax + 0x94]
push 0x11
push ecx
call eax
mov esi, dword [esp + 0x24]
add esp, 0x10
movzx eax, al
test eax, eax
je 0x1004bc65
mov dword [esp + 0x18], 0x11
jmp 0x1004bc97
mov ebx, dword [esp + 0x24]
jmp 0x1004bc19
lea eax, [esp + 0x20]
push eax
lea eax, [esp + 0x38]
push eax
mov eax, dword [esp + 0x24]
push 2
push esi
mov eax, dword [eax + 0x94]
call eax
movzx eax, al
add esp, 0x10
test eax, eax
mov edx, 2
mov ecx, 0xffffffff
cmovne ecx, edx
mov dword [esp + 0x18], ecx
test eax, eax
je 0x1004bcff
lea eax, [esp + 0x20]
push eax
lea eax, [esp + 0x38]
push eax
mov eax, dword [esp + 0x24]
push 6
push esi
mov eax, dword [eax + 0x94]
call eax
add esp, 0x10
test al, al
je 0x1004bcff
movzx eax, word [esp + 0x2c]
mov esi, dword [esp + 0x30]
mov edx, dword [esp + 0x18]
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 ebx, ebx
je 0x1004bcff
lea ecx, [esi + 8]
mov esi, ebx
nop dword [eax]
mov eax, dword [ecx]
lea ecx, [ecx + 0x18]
mov dword [edx], eax
lea edx, [edx + 4]
sub esi, 1
jne 0x1004bcf0
mov ecx, dword [esp + 0x14]
call fcn.1004ac20
mov edx, dword [esp + 0x14]
cmp dword [esp + 0x54], 0
je 0x1004be44
mov eax, dword [edx + 0x2e0]
xor edi, edi
xor esi, esi
mov dword [esp + 0x28], edi
mov eax, dword [eax + 0x10]
mov dword [esp + 0x3c], eax
test eax, eax
jle 0x1004bd62
push eax
mov eax, dword [esp + 0x44]
push eax
mov eax, dword [eax + 4]
call eax
mov esi, eax
add esp, 8
test esi, esi
jne 0x1004bd4d
mov edx, dword [esp + 0x14]
lea edi, [eax + 0x40]
jmp 0x1004bd69
push dword [esp + 0x3c]
push 0
push esi
call sub.VCRUNTIME140.dll_memset
mov edx, dword [esp + 0x20]
add esp, 0xc
jmp 0x1004bd6d
jns 0x1004bd6d
mov edi, 6
mov dword [esp + 0x28], edi
test edi, edi
jne 0x1004be44
mov eax, dword [edx + 0x2e0]
push dword [eax + 0x10]
push dword [eax + 0xc]
push esi
call sub.VCRUNTIME140.dll_memcpy
mov eax, dword [esp + 0x54]
add esp, 0xc
mov ecx, dword [esp + 0x4c]
add eax, 0x14
mov edx, dword [esp + 0x38]
add eax, esi
add ecx, eax
mov dword [esi + 0xc], eax
add edx, ecx
mov dword [esi + 0x10], ecx
cmp dword [esi + 8], edi
jbe 0x1004bde0
lea eax, [ebx*4]
xor ecx, ecx
mov dword [esp + 0x3c], eax
xor ebx, ebx
mov edi, eax
nop dword [eax + eax]
mov eax, dword [esi + 0x10]
lea ecx, [ecx + 0xc]
inc ebx
mov dword [ecx + eax - 0xc], edx
add edx, edi
cmp ebx, dword [esi + 8]
jb 0x1004bdc0
mov eax, dword [esi + 0xc]
mov ecx, dword [esi + 0x10]
mov edi, dword [esp + 0x28]
mov ebx, dword [esp + 0x24]
mov edx, dword [esp + 0x44]
add edx, ecx
add edx, dword [esp + 0x38]
test ebx, ebx
je 0x1004be3e
nop
mov ecx, dword [eax + 0x10]
mov dword [eax], edx
cmp ecx, 0x77676874
jne 0x1004be05
mov dword [eax], str.Weight
jmp 0x1004be33
cmp ecx, 0x77647468
jne 0x1004be15
mov dword [eax], str.Width
jmp 0x1004be33
cmp ecx, 0x6f70737a
jne 0x1004be25
mov dword [eax], str.OpticalSize
jmp 0x1004be33
cmp ecx, 0x736c6e74
jne 0x1004be33
mov dword [eax], str.Slant
add edx, 5
add eax, 0x18
sub ebx, 1
jne 0x1004bdf0
mov eax, dword [esp + 0x54]
mov dword [eax], esi
mov ecx, dword [esp + 0x7c]
mov eax, edi
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.1011796f
mov esp, ebp
pop ebp
ret