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

Disassembly:
push edi
push esi
push ebp
push ebx
sub esp, 0x38
mov eax, dword [esp + 0x50]
mov esi, dword [esp + 0x58]
cmp esi, 0x13
jl 0x10037d13
mov edx, dword [esp + 0x54]
cmp eax, edx
je 0x1003808a
cmp esi, 0x15
jl 0x10037c6a
mov ecx, esi
mov ebx, 1
shl ebx, cl
mov edx, ebx
shl edx, 3
push edx
mov ebp, dword [esp + 0x58]
push ebp
push eax
call fcn.10081f70
mov edx, dword [esp + 0x4c]
mov eax, dword [esp + 0x5c]
lea eax, [eax + 0x8000]
mov edi, dword [edx + 0x24]
mov ecx, ebx
sar ecx, 0xc
lea edx, [edi + ecx*4]
test ecx, ecx
jle 0x10037d74
mov dword [esp + 0x24], ebx
mov dword [esp + 0x1c], eax
mov dword [esp + 0x2c], edx
mov dword [esp + 0x34], ecx
mov dword [esp + 0x18], edi
xor ebp, ebp
mov dword [esp + 0x20], ebp
mov edi, ebp
mov eax, dword [esp + 0x18]
mov ebx, dword [eax + edi*4]
cmp ebp, ebx
jl 0x10037baa
je 0x10038035
jmp 0x10037c4b
mov esi, dword [esp + 0x54]
lea eax, [esi + ebp*8]
mov esi, dword [esp + 0x24]
mov dword [esp + 0x28], eax
sar esi, 6
mov edx, 0x40
push edx
push edx
push esi
mov ecx, dword [esp + 0x68]
push ecx
push eax
call fcn.10081fb0
mov eax, dword [esp + 0x40]
push eax
push 0x1000
mov edx, dword [esp + 0x78]
push edx
call fcn.10082050
mov eax, dword [esp + 0x74]
lea ebx, [eax + ebx*8]
mov edx, 0x40
push edx
push edx
push esi
mov ecx, dword [esp + 0x48]
push ecx
push ebx
call fcn.10081fb0
mov eax, dword [esp + 0x60]
push eax
push 0x1000
mov edx, dword [esp + 0x58]
push edx
call fcn.10082050
push 0
mov eax, 0x40
push eax
push eax
push esi
mov edx, dword [esp + 0xac]
push edx
push ebx
call fcn.10082240
push 0
mov eax, 0x40
push eax
push eax
push esi
mov edx, dword [esp + 0x84]
push edx
mov ecx, dword [esp + 0x94]
push ecx
call fcn.10082240
add esp, 0x70
mov eax, dword [esp + 0x34]
add edi, 1
add ebp, 0x40
cmp edi, eax
jl 0x10037b94
mov ebx, dword [esp + 0x24]
mov esi, dword [esp + 0x58]
jmp 0x10037d74
mov edx, dword [esp + 0x4c]
mov edi, dword [edx + 0x24]
mov ecx, esi
mov ebx, 1
shl ebx, cl
mov ecx, ebx
sar ecx, 0xc
lea edx, [edi + ecx*4]
test ecx, ecx
jle 0x10037d74
mov dword [esp + 0x24], ebx
mov dword [esp + 0x2c], edx
mov dword [esp + 0x34], ecx
mov dword [esp + 0x1c], edi
mov edi, dword [esp + 0x5c]
xor ebp, ebp
mov dword [esp + 0x28], ebp
mov esi, ebp
mov dword [esp + 0x20], ebp
mov ebp, ebx
mov ebx, dword [esp + 0x20]
sar ebp, 6
mov eax, dword [esp + 0x1c]
mov edx, dword [esp + 0x50]
mov ecx, dword [eax + esi*4]
lea edx, [edx + ecx*8]
mov eax, 0x40
push eax
push eax
push ebp
push edi
push edx
call fcn.10081fb0
mov eax, dword [esp + 0x40]
push eax
push 0x1000
push edi
call fcn.10082050
mov eax, dword [esp + 0x74]
push 0
lea ecx, [eax + ebx*8]
mov edx, 0x40
push edx
push edx
push ebp
push edi
push ecx
call fcn.10082240
add esp, 0x38
mov eax, dword [esp + 0x34]
add esi, 1
add ebx, 0x40
cmp esi, eax
jl 0x10037cb3
mov ebx, dword [esp + 0x24]
mov esi, dword [esp + 0x58]
jmp 0x10037d74
mov edx, dword [esp + 0x54]
cmp eax, edx
je 0x10038226
cmp esi, 0x12
jl 0x10037d55
mov ecx, esi
mov ebx, 1
shl ebx, cl
mov edx, ebx
shl edx, 3
push edx
mov ebp, dword [esp + 0x58]
push ebp
push eax
call fcn.10081f70
mov eax, dword [esp + 0x4c]
push dword [eax + 0x24]
push ebx
mov edx, dword [esp + 0x5c]
push edx
call fcn.100397f0
add esp, 0xc
jmp 0x10037d74
mov edx, dword [esp + 0x4c]
push dword [edx + 0x24]
mov ecx, esi
mov ebx, 1
shl ebx, cl
push ebx
mov ebp, dword [esp + 0x5c]
push ebp
push eax
call fcn.10036420
add esp, 0x10
mov eax, dword [esi*4 + 0x100a087c]
test eax, eax
jne 0x10037e8a
cmp ebx, 0x4000
mov ecx, ebx
jl 0x10037d92
mov ecx, 0x4000
test ebx, ebx
jle 0x10037e54
mov edi, dword [esp + 0x54]
mov dword [esp + 0x30], ecx
mov dword [esp + 0x24], ebx
xor esi, esi
mov ebx, dword [esp + 0x4c]
lea ebp, [ecx - 0x20000]
lea eax, [edi + esi*8]
mov ecx, ebp
test ebp, ebp
jl 0x10037e19
mov edi, dword [esp + 0x5c]
mov dword [esp + 0x2c], eax
mov dword [esp + 0x34], ebp
lea edx, [eax + ecx*8]
mov dword [esp + 0x20], esi
mov ebp, edx
mov esi, ecx
push 1
push edi
push dword [ebx + 0x28]
push 0x20000
push ebp
call fcn.10036720
add esp, 0x14
mov eax, dword [ebx + 8]
test eax, eax
je 0x10037dfb
push 0x40000
push ebp
push dword [ebx + 0x10]
call fcn.10021388
add ebp, 0xfff00000
add esi, 0xfffe0000
jns 0x10037dd2
mov eax, dword [esp + 0x2c]
mov ebp, dword [esp + 0x34]
mov esi, dword [esp + 0x20]
mov edi, dword [esp + 0x54]
mov edx, dword [ebx + 0x2c]
mov dword [esp + 0x10], 1
mov dword [esp + 0xc], edx
mov edx, dword [esp + 0x30]
mov ecx, 0x20000
mov dword [esp + 0x14], 0x400
call fcn.1003824c
add esi, dword [esp + 0x30]
mov eax, dword [esp + 0x24]
cmp esi, eax
jl 0x10037db2
mov ecx, dword [esp + 0x30]
mov ebx, eax
cmp ebx, ecx
jle 0x1003802d
mov ebp, dword [esp + 0x4c]
mov eax, dword [esp + 0x54]
mov esi, dword [ebp + 0x30]
mov dword [esp + 0xc], esi
mov dword [esp + 0x10], 1
mov edx, ebx
mov dword [esp + 0x14], 0x100
call fcn.1003824c
add esp, 0x38
pop ebx
pop ebp
pop esi
pop edi
ret
mov edi, dword [esp + 0x54]
mov ebp, esi
sub ebp, eax
mov ecx, ebp
mov ebx, 1
shl ebx, cl
mov ecx, eax
mov edx, 1
shl edx, cl
cmp ebp, 0x11
jg 0x10037ef7
test edx, edx
jle 0x10037f42
mov esi, dword [esp + 0x4c]
mov dword [esp + 0x2c], edx
mov dword [esp + 0x34], eax
xor ebp, ebp
push 0
mov eax, dword [esp + 0x60]
push eax
push dword [esi + 0x28]
push ebx
push edi
call fcn.10036720
add esp, 0x14
mov eax, dword [esi + 8]
test eax, eax
je 0x10037ee7
lea eax, [ebx + ebx]
push eax
push edi
push dword [esi + 0x10]
call fcn.10021388
mov eax, dword [esp + 0x2c]
lea edi, [edi + ebx*8]
add ebp, 1
cmp ebp, eax
jl 0x10037ebf
jmp 0x10037f38
test edx, edx
jle 0x10037f42
mov esi, dword [esp + 0x5c]
mov dword [esp + 0x2c], edx
mov dword [esp + 0x1c], ebp
xor ecx, ecx
mov dword [esp + 0x34], eax
mov ebp, ecx
mov eax, dword [esp + 0x4c]
mov ecx, dword [esp + 0x1c]
mov dword [esp + 0xc], 1
mov dword [esp + 0x10], esi
mov edx, edi
call fcn.1003850c
mov eax, dword [esp + 0x2c]
lea edi, [edi + ebx*8]
add ebp, 1
cmp ebp, eax
jl 0x10037f0f
mov edx, eax
mov eax, dword [esp + 0x34]
mov esi, dword [esp + 0x58]
mov ebp, dword [esp + 0x4c]
mov ecx, dword [esi*4 + 0x100a08dc]
mov ebp, dword [ebp + 0x48]
sub ecx, eax
mov edi, 1
shl edi, cl
test ebx, ebx
jle 0x1003802d
mov dword [esp + 0x2c], edx
mov ecx, eax
mov dword [esp + 0x30], ebx
mov dword [esp + 0x34], eax
xor esi, esi
and ecx, 1
mov dword [esp + 0x28], ecx
mov ebx, dword [esp + 0x54]
push edi
mov eax, dword [esp + 0x30]
lea ebx, [ebx + esi*8]
push eax
mov edx, dword [esp + 0x38]
push edx
mov ecx, dword [esp + 0x68]
push ecx
push ebx
call fcn.10081fb0
add esp, 0x14
mov eax, dword [esp + 0x2c]
mov ecx, dword [esp + 0x34]
mov edx, edi
cmp ecx, 2
jl 0x10037ff8
mov dword [esp + 0x18], ebx
mov dword [esp + 0x1c], esi
mov esi, edx
mov ecx, 2
mov ebx, ecx
mov dword [esp + 0x20], edi
mov edi, ebp
mov ebp, eax
push edi
sar ebp, 2
push ebp
push esi
mov eax, dword [esp + 0x68]
push eax
push eax
call fcn.100823c0
add esp, 0x14
lea eax, [esi + esi*2]
lea edi, [edi + eax*8]
mov eax, dword [esp + 0x34]
shl esi, 2
add ebx, 2
cmp ebx, eax
jle 0x10037fc0
mov ebx, dword [esp + 0x18]
mov edx, esi
mov esi, dword [esp + 0x1c]
mov ebp, edi
mov edi, dword [esp + 0x20]
mov eax, dword [esp + 0x28]
test eax, eax
jne 0x10038203
push 1
push edi
mov eax, dword [esp + 0x34]
push eax
mov edx, dword [esp + 0x3c]
push edx
mov ecx, dword [esp + 0x6c]
push ecx
push ebx
call fcn.10082240
add esp, 0x18
mov eax, dword [esp + 0x30]
add esi, edi
cmp esi, eax
jl 0x10037f78
add esp, 0x38
pop ebx
pop ebp
pop esi
pop edi
ret
mov esi, dword [esp + 0x54]
mov ebx, dword [esp + 0x24]
lea esi, [esi + ebp*8]
sar ebx, 6
mov eax, 0x40
push eax
push eax
push ebx
mov edx, dword [esp + 0x68]
push edx
push esi
call fcn.10081fb0
mov eax, dword [esp + 0x40]
push eax
push 0x1000
mov edx, dword [esp + 0x78]
push edx
call fcn.10082050
push 0
mov eax, 0x40
push eax
push eax
push ebx
mov edx, dword [esp + 0x8c]
push edx
push esi
call fcn.10082240
add esp, 0x38
jmp 0x10037c4b
mov edx, dword [esp + 0x4c]
mov eax, dword [esp + 0x5c]
lea eax, [eax + 0x8000]
mov ebp, dword [edx + 0x24]
mov ecx, esi
mov ebx, 1
shl ebx, cl
mov ecx, ebx
sar ecx, 0xc
lea edx, [ebp + ecx*4]
test ecx, ecx
jle 0x10037d74
mov dword [esp + 0x1c], eax
mov dword [esp + 0x28], edx
mov dword [esp + 0x18], ecx
mov dword [esp + 0x2c], ebp
mov dword [esp + 0x24], ebx
xor edi, edi
mov dword [esp + 0x30], edi
mov dword [esp + 0x20], edi
mov esi, edi
mov edi, dword [esp + 0x30]
mov eax, dword [esp + 0x2c]
mov ebx, dword [eax + edi*4]
cmp esi, ebx
jl 0x100380ef
je 0x100381b0
jmp 0x10038191
mov ebp, dword [esp + 0x54]
lea eax, [ebp + esi*8]
mov ebp, dword [esp + 0x24]
mov dword [esp + 0x34], eax
sar ebp, 6
mov edx, 0x40
push edx
push edx
push ebp
mov ecx, dword [esp + 0x68]
push ecx
push eax
call fcn.10081fb0
mov eax, dword [esp + 0x3c]
push eax
push 0x1000
mov edx, dword [esp + 0x78]
push edx
call fcn.10082050
mov eax, dword [esp + 0x74]
lea ebx, [eax + ebx*8]
mov edx, 0x40
push edx
push edx
push ebp
mov ecx, dword [esp + 0x48]
push ecx
push ebx
call fcn.10081fb0
mov eax, dword [esp + 0x5c]
push eax
push 0x1000
mov edx, dword [esp + 0x58]
push edx
call fcn.10082050
push 0
mov eax, 0x40
push eax
push eax
push ebp
mov edx, dword [esp + 0xac]
push edx
push ebx
call fcn.10082240
push 0
mov eax, 0x40
push eax
push eax
push ebp
mov edx, dword [esp + 0x84]
push edx
mov ecx, dword [esp + 0xa0]
push ecx
call fcn.10082240
add esp, 0x70
mov eax, dword [esp + 0x18]
add edi, 1
add esi, 0x40
cmp edi, eax
jl 0x100380d9
mov ebx, dword [esp + 0x24]
mov esi, dword [esp + 0x58]
jmp 0x10037d74
mov ebp, dword [esp + 0x54]
mov ebx, dword [esp + 0x24]
lea ebp, [ebp + esi*8]
sar ebx, 6
mov eax, 0x40
push eax
push eax
push ebx
mov edx, dword [esp + 0x68]
push edx
push ebp
call fcn.10081fb0
mov eax, dword [esp + 0x3c]
push eax
push 0x1000
mov edx, dword [esp + 0x78]
push edx
call fcn.10082050
push 0
mov eax, 0x40
push eax
push eax
push ebx
mov edx, dword [esp + 0x8c]
push edx
push ebp
call fcn.10082240
add esp, 0x38
jmp 0x10038191
push ebp
push 1
push edx
mov eax, dword [esp + 0x68]
push eax
push eax
mov dword [esp + 0x38], edx
call fcn.100824f0
mov edx, dword [esp + 0x38]
add esp, 0x14
lea ebp, [ebp + edx*8]
jmp 0x10038004
mov eax, dword [esp + 0x4c]
push dword [eax + 0x24]
mov ecx, esi
mov ebx, 1
shl ebx, cl
push ebx
mov edx, dword [esp + 0x5c]
push edx
call fcn.100397f0
add esp, 0xc
jmp 0x10037d74