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

Disassembly:
sub esp, 0x30
push ebx
push ebp
push esi
mov esi, dword [esp + 0x40]
push edi
xor edx, edx
mov edi, dword [esi + 0x154]
lea ebx, [esi + 0x170]
mov dword [esp + 0x14], 0x40
mov dword [esp + 0x10], edx
lea eax, [edi + 0x80]
mov dword [esp + 0x20], edx
mov dword [esp + 0x44], eax
mov dword [esp + 0x28], 5
mov dword [esp + 0x24], ebx
jmp 0x10074689
mov edx, dword [esp + 0x20]
mov ebx, dword [esp + 0x24]
mov eax, dword [esi + 0xd0]
mov ecx, edx
shr ecx, 1
imul ecx, eax
push eax
imul eax, dword [esp + 0x54]
mov ebp, dword [esp + 0x50]
and edx, 1
add ecx, edx
mov edx, dword [esp + 0x4c]
add eax, ebp
mov ebp, dword [edx]
shl eax, 4
shl ecx, 3
add eax, ebp
add eax, ecx
push eax
mov eax, dword [esi + 0xb8]
add eax, ecx
push eax
push edi
call dword [0x101510f8]
mov ecx, dword [esi + 0x1a4]
mov edx, dword [ebx + 0x1c]
mov eax, dword [esi + 0x188]
mov ebp, dword [esi + 0x15c]
mov dword [esp + 0x3c], ecx
mov ecx, dword [esi + 0x16c]
mov dword [esp + 0x40], edx
mov edx, dword [ebx]
mov ebx, dword [esi + 0x154]
mov dword [esp + 0x4c], eax
mov eax, dword [esi + 0x168]
mov dword [esp + 0x28], ecx
mov ecx, dword [esi + 0x158]
push edi
mov dword [esp + 0x4c], edx
mov dword [esp + 0x48], eax
mov dword [esp + 0x30], ecx
add ebx, 0x100
call dword [0x101510c0]
mov edx, dword [esp + 0x2c]
mov eax, dword [esp + 0x30]
mov ecx, dword [esp + 0x58]
add esp, 0x14
test ebp, ebp
push edx
push eax
push edi
push ecx
je 0x1007473f
call dword [0x101510d0]
jmp 0x10074745
call dword [0x101510e4]
add esp, 0x10
test eax, eax
jle 0x100747f5
mov ecx, dword [esp + 0x28]
mov eax, dword [esp + 0x10]
mov edx, 1
shl edx, cl
mov ecx, dword [esp + 0x44]
or eax, edx
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x34]
push eax
push ecx
call fcn.1005ba90
mov edx, dword [esp + 0x20]
mov ecx, dword [esp + 0x4c]
shl eax, 4
add esp, 8
mov dword [esp + 0x34], eax
mov eax, dword [esp + 0x1c]
push edx
push eax
push ecx
push ebx
test ebp, ebp
je 0x1007479a
call dword [0x101510d8]
jmp 0x100747a0
call dword [0x101510dc]
mov eax, dword [esp + 0x3c]
add esp, 0x10
test eax, eax
je 0x100747f0
push edi
call dword [0x10151234]
imul eax, dword [esp + 0x34]
mov edx, 0x8000
add esp, 4
add eax, eax
mov ecx, edx
mov ebp, ecx
imul ebp, ecx
cmp ebp, eax
jbe 0x100747ce
xor ecx, edx
shr edx, 1
je 0x100747d6
or ecx, edx
jmp 0x100747c3
add ecx, 0x30
shr ecx, 6
push ecx
push ebx
push edi
call dword [0x1015123c]
lea eax, [eax + eax*4]
add esp, 0xc
shr eax, 7
jmp 0x1007484f
push 0x10
push ebx
jmp 0x10074845
mov eax, dword [esp + 0x2c]
mov dword [esp + 0x34], 0
test eax, eax
je 0x1007483e
push edi
call dword [0x10151234]
imul eax, dword [esp + 0x34]
mov edx, 0x8000
add esp, 4
add eax, eax
mov ecx, edx
mov ebx, ecx
imul ebx, ecx
cmp ebx, eax
jbe 0x10074828
xor ecx, edx
shr edx, 1
je 0x10074830
or ecx, edx
jmp 0x1007481d
add ecx, 0x30
shr ecx, 6
push ecx
push 0x100d7340
jmp 0x100747de
push 0x10
push 0x100d7340
push edi
call dword [0x10151214]
add esp, 0xc
imul eax, dword [esp + 0x38]
xor edx, edx
mov ebp, dword [esp + 0x34]
div dword [esp + 0x3c]
mov ecx, dword [esi + 0x10]
mov edx, eax
mov eax, dword [esp + 0x14]
add edx, ebp
add eax, edx
cmp eax, ecx
mov dword [esp + 0x14], eax
jge 0x10074b3c
mov eax, dword [esp + 0x20]
mov ebx, dword [esp + 0x24]
mov edx, dword [esp + 0x28]
inc eax
add ebx, 4
dec edx
cmp eax, 4
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], ebx
mov dword [esp + 0x28], edx
jb 0x10074681
mov eax, dword [esp + 0x10]
mov ecx, 0x100d1cac
shr eax, 2
shl eax, 3
sub ecx, eax
mov eax, dword [esi + 0xd0]
shr eax, 1
push eax
imul eax, dword [esp + 0x54]
mov ebp, dword [esp + 0x18]
xor edx, edx
mov dl, byte [ecx]
mov ecx, dword [esp + 0x50]
sub edx, 2
add eax, ecx
mov ecx, dword [esp + 0x4c]
shl edx, 4
add ebp, edx
mov edx, dword [ecx + 4]
mov ecx, dword [esi + 0xbc]
mov dword [esp + 0x18], ebp
lea eax, [edx + eax*8]
push eax
push ecx
push edi
call dword [0x101510f8]
mov edx, dword [esi + 0x1a4]
mov eax, dword [esi + 0x19c]
mov ecx, dword [esi + 0x188]
mov ebx, dword [esi + 0x154]
mov ebp, dword [esi + 0x15c]
mov dword [esp + 0x44], edx
mov edx, dword [esi + 0x16c]
mov dword [esp + 0x40], eax
mov eax, dword [esi + 0x180]
mov dword [esp + 0x38], ecx
mov ecx, dword [esi + 0x168]
mov dword [esp + 0x2c], edx
mov edx, dword [esi + 0x158]
push edi
mov dword [esp + 0x4c], eax
mov dword [esp + 0x50], ecx
mov dword [esp + 0x2c], edx
add ebx, 0x100
call dword [0x101510c0]
mov eax, dword [esp + 0x30]
mov ecx, dword [esp + 0x2c]
mov edx, dword [esp + 0x58]
add esp, 0x14
test ebp, ebp
push eax
push ecx
push edi
push edx
je 0x1007496d
call dword [0x101510d0]
jmp 0x10074973
call dword [0x101510e4]
add esp, 0x10
test eax, eax
jle 0x10074a19
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 0x3c]
mov ecx, dword [esp + 0x44]
or edx, 2
push eax
push ecx
mov dword [esp + 0x18], edx
call fcn.1005ba90
mov edx, dword [esp + 0x24]
mov ecx, dword [esp + 0x4c]
shl eax, 4
add esp, 8
mov dword [esp + 0x2c], eax
mov eax, dword [esp + 0x18]
push edx
push eax
push ecx
push ebx
test ebp, ebp
je 0x100749be
call dword [0x101510d8]
jmp 0x100749c4
call dword [0x101510dc]
mov eax, dword [esp + 0x44]
add esp, 0x10
test eax, eax
je 0x10074a14
push edi
call dword [0x10151234]
imul eax, dword [esp + 0x34]
mov edx, 0x8000
add esp, 4
add eax, eax
mov ecx, edx
mov ebp, ecx
imul ebp, ecx
cmp ebp, eax
jbe 0x100749f2
xor ecx, edx
shr edx, 1
je 0x100749fa
or ecx, edx
jmp 0x100749e7
add ecx, 0x30
shr ecx, 6
push ecx
push ebx
push edi
call dword [0x1015123c]
lea eax, [eax + eax*4]
add esp, 0xc
shr eax, 7
jmp 0x10074a6c
push 0x10
push ebx
jmp 0x10074a62
mov eax, dword [esp + 0x34]
mov dword [esp + 0x2c], 0
test eax, eax
je 0x10074a5b
push edi
call dword [0x10151234]
imul eax, dword [esp + 0x34]
add eax, eax
push eax
call fcn.10074cb0
add eax, 0x30
shr eax, 6
push eax
push 0x100d7340
push edi
call dword [0x1015123c]
lea eax, [eax + eax*4]
add esp, 0x14
shr eax, 7
jmp 0x10074a6c
push 0x10
push 0x100d7340
push edi
call dword [0x10151214]
add esp, 0xc
imul eax, dword [esp + 0x38]
xor edx, edx
mov ebx, dword [esp + 0x14]
div dword [esp + 0x28]
add eax, dword [esp + 0x2c]
add ebx, eax
mov eax, dword [esi + 0x10]
cmp ebx, eax
jl 0x10074a92
pop edi
pop esi
mov eax, ebx
pop ebp
pop ebx
add esp, 0x30
ret
mov eax, dword [esi + 0xd0]
mov ecx, dword [esp + 0x4c]
shr eax, 1
push eax
imul eax, dword [esp + 0x54]
mov edx, dword [esp + 0x4c]
add eax, ecx
mov ecx, dword [edx + 8]
lea edx, [ecx + eax*8]
mov eax, dword [esi + 0xc0]
push edx
push eax
push edi
call dword [0x101510f8]
mov ecx, dword [esi + 0x1a4]
mov edx, dword [esi + 0x1a0]
mov eax, dword [esi + 0x188]
push ecx
mov ecx, dword [esi + 0x16c]
push edx
mov edx, dword [esi + 0x184]
push eax
mov eax, dword [esi + 0x168]
push ecx
push edx
mov edx, dword [esi + 0x15c]
push eax
mov eax, dword [esi + 0x158]
lea ecx, [esp + 0x38]
push 5
push ecx
mov ecx, dword [esi + 0x154]
push edx
mov edx, dword [esp + 0x78]
add ecx, 0x100
push eax
push ecx
push edi
push edx
call fcn.10074b50
mov ecx, dword [esp + 0x54]
add ebx, eax
mov eax, ecx
xor edx, edx
and eax, 3
add esp, 0x44
shl eax, 6
mov dl, byte [eax + 0x100dc924]
mov dword [esi + 0x160], ecx
shl edx, 4
lea eax, [ebx + edx - 0x10]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x30
ret