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

Disassembly:
sub esp, 0x194
push ebx
push ebp
push esi
mov esi, dword [esp + 0x1a4]
mov ebx, dword [esi + 0x12544]
push edi
mov edi, dword [ebx + 0x103f8]
xor edx, edx
mov eax, edi
div dword [ebx + 0x103fc]
mov edx, dword [esp + 0x1b4]
mov byte [esp + 0x13], 0
mov dword [esp + 0x38], eax
lea eax, [edx - 1]
test edx, eax
sete byte [esp + 0x12]
test edx, 0xfffffffe
mov eax, 1
jbe 0x3bb8ad
mov edi, edi
add eax, 1
mov ebp, edx
mov ecx, eax
shr ebp, cl
test ebp, ebp
ja 0x3bb8a0
cmp byte [esp + 0x1cc], 1
sete cl
test cl, cl
mov byte [esp + 0x11], cl
je 0x3bb8c4
mov dword [esp + 0x38], edi
mov ecx, dword [esp + 0x1c4]
mov edx, dword [ecx]
mov ebp, dword [ecx + 4]
mov edi, dword [ecx + 8]
mov ecx, dword [ecx + 0xc]
mov dword [esp + 0x20], edx
mov dword [esp + 0x24], ebp
mov dword [esp + 0x28], edi
mov dword [esp + 0x2c], ecx
mov ecx, dword [ebx + 0x103b0]
test cl, 0x40
mov dword [esp + 0x18], ecx
je 0x3bb97e
test byte [esi + 0x12b63], 3
jne 0x3bb97e
cmp byte [esp + 0x12], 0
je 0x3bb97e
cmp dword [ebx + 0x103a4], 2
jbe 0x3bb917
test cl, 4
je 0x3bb97e
mov ecx, dword [esp + 0x1b8]
test byte [ecx + 0x5c], 1
jne 0x3bb92d
test byte [ebx + 0x1038d], 2
jne 0x3bb97e
mov ecx, dword [esi + 0x20e00]
mov dword [esp + 0x54], ecx
mov ecx, dword [esi + 0x20e04]
mov dword [esp + 0x58], ecx
mov ecx, dword [esi + eax*8 + 0x20e58]
mov dword [esp + 0x5c], ecx
mov ecx, dword [esi + eax*8 + 0x20e5c]
mov dword [esp + 0x60], ecx
mov ecx, dword [esi + 0x20e08]
mov dword [esp + 0x68], ecx
mov ecx, dword [esp + 0x1b0]
lea eax, [eax + ecx*4 - 1]
mov ecx, dword [esi + eax*4 + 0x20cc8]
mov dword [esp + 0x64], ecx
mov byte [esp + 0x12], 0
jmp 0x3bb9ac
mov ecx, dword [esi + 0x20dfc]
mov eax, dword [ecx]
mov ecx, dword [ecx + 4]
mov dword [esp + 0x5c], eax
mov dword [esp + 0x54], eax
mov eax, dword [esi + 0x12ec0]
mov dword [esp + 0x60], ecx
mov dword [esp + 0x58], ecx
mov dword [esp + 0x64], eax
mov dword [esp + 0x68], eax
mov byte [esp + 0x12], 1
mov ecx, edi
mov edi, dword [esp + 0x2c]
sub ecx, edx
mov edx, dword [esp + 0x1b8]
imul ecx, dword [edx + 0x50]
sub edi, ebp
cmp byte [esp + 0x1cc], 0
je 0x3bb9fc
test byte [esp + 0x1a], 0x10
je 0x3bb9fc
test byte [ebx + 0x103b4], 2
je 0x3bb9fc
mov eax, dword [esp + 0x1bc]
mov eax, dword [eax + 0x14]
cdq
sub eax, edx
sar eax, 1
cmp ebp, eax
jg 0x3bc345
cmp dword [esp + 0x2c], eax
jle 0x3bb9fc
sub eax, ebp
mov edi, eax
cmp byte [esp + 0x11], 0
mov dword [esp + 0x34], edi
je 0x3bba10
mov eax, edi
cdq
sub eax, edx
sar eax, 1
mov edi, eax
mov eax, dword [esp + 0x38]
lea ebx, [ecx + 0x1f]
and ebx, 0xffffffe0
cdq
idiv ebx
mov ecx, dword [esp + 0x1c8]
mov dword [esp + 0x78], ebx
mov ebx, dword [ecx]
mov ecx, dword [esp + 0x1b0]
mov dword [esp + 0x1c], 0
mov dword [esp + 0x6c], edx
mov edx, 1
shl edx, cl
cmp byte [esp + 0x11], 0
mov dword [esp + 0x3c], eax
mov eax, dword [esi + 0x20c4c]
mov dword [esp + 0x14], edx
mov dword [esp + 0x6c], eax
je 0x3bba69
test byte [esp + 0x34], 1
je 0x3bba69
sub dword [esp + 0x3c], 1
test edi, edi
jle 0x3bc2fc
mov ecx, dword [esp + 0x3c]
cmp ecx, edi
jl 0x3bba7b
mov ecx, edi
sub edi, ecx
test ecx, ecx
mov dword [esp + 0x50], ecx
mov dword [esp + 0x74], edi
jle 0x3bc2f4
test edi, edi
jne 0x3bba9e
mov eax, dword [esp + 0x34]
and eax, 1
mov dword [esp + 0x70], eax
jmp 0x3bbaa6
mov dword [esp + 0x70], 0
add ebp, dword [esp + 0x1c]
mov edx, dword [esp + 0x28]
lea eax, [ecx + ebp]
mov ecx, dword [esp + 0x20]
xor edi, edi
mov dword [esp + 0x2c], eax
sub edx, ecx
sub eax, ebp
cmp byte [esp + 0x11], 0
mov dword [esp + 0x24], ebp
mov dword [esp + 0x40], edi
mov dword [esp + 0x44], edi
mov dword [esp + 0x48], edx
mov dword [esp + 0x4c], eax
je 0x3bbade
xor ebp, ebp
jmp 0x3bbae9
mov ebp, dword [esi + 0x20d8c]
imul ebp, dword [esp + 0x38]
xor edi, edi
mov eax, ebp
add eax, dword [esp + 0x5c]
mov ecx, edi
adc ecx, dword [esp + 0x60]
cmp byte [esp + 0x12], 0
mov dword [esp + 0x80], ecx
mov dword [esp + 0x98], ecx
mov ecx, dword [esp + 0x64]
mov dword [esp + 0x7c], eax
mov dword [esp + 0x94], eax
mov eax, dword [esp + 0x78]
mov dword [esp + 0x9c], ecx
mov ecx, dword [esp + 0x1b8]
mov dword [esp + 0xa0], eax
mov eax, dword [ecx + 0x50]
mov dword [esp + 0x18], eax
mov dword [esp + 0xe4], eax
mov eax, dword [ecx + 0x80]
mov edx, 3
mov dword [esp + 0xf0], edi
mov dword [esp + 0xbc], edx
mov dword [esp + 0x1c], eax
mov dword [esp + 0x114], eax
je 0x3bbbd3
cmp byte [esp + 0x1cc], 0
je 0x3bbbd3
mov eax, dword [esi + 0x20df8]
mov dword [esp + 0x144], edx
mov dword [esp + 0x178], edi
mov edx, dword [eax]
mov ecx, dword [eax + 4]
add edx, ebp
mov dword [esp + 0x11c], edx
mov edx, dword [esp + 0x78]
adc ecx, edi
mov dword [esp + 0x120], ecx
mov ecx, dword [esp + 0x18]
mov dword [esp + 0x128], edx
mov eax, dword [eax + 0x60]
mov edx, dword [esp + 0x1c]
mov dword [esp + 0x124], eax
lea eax, [esp + 0x11c]
mov dword [esp + 0x16c], ecx
mov dword [esp + 0x19c], edx
mov dword [esp + 0x18], eax
jmp 0x3bbbde
lea ecx, [esp + 0x94]
mov dword [esp + 0x18], ecx
cmp dword [esi + 0x11d0c], 0
je 0x3bbc1a
mov ecx, dword [esp + 0x14]
mov dword [esi + 0x20c4c], ecx
mov edx, dword [esi + 8]
mov eax, dword [edx]
or ch, 0x10
add eax, 4
shl ecx, 4
mov dword [eax - 4], ecx
mov ecx, dword [esi + 8]
mov dword [ecx], eax
mov edx, dword [esi + 8]
cmp eax, dword [edx + 4]
jb 0x3bbc1a
push 0
xor edx, edx
mov ecx, esi
call fcn.003bfc90
mov eax, dword [esi + 0x20d8c]
mov eax, dword [esi + eax*4 + 0x20d4c]
test eax, eax
mov dword [esp + 0x30], eax
mov dword [esp + 0x1c], 0
je 0x3bbc73
test al, 1
je 0x3bbc64
mov eax, dword [esi + 0x20d8c]
mov ecx, dword [esp + 0x14]
mov edx, dword [esi + eax*4 + 0x20d0c]
push ecx
mov ecx, dword [esp + 0x20]
push edx
lea edx, [ecx + eax*4 + 0x15]
push edx
push esi
call fcn.003b7a00
mov eax, dword [esp + 0x40]
add esp, 0x10
add dword [esp + 0x1c], 1
sar eax, 1
test eax, eax
mov dword [esp + 0x30], eax
jne 0x3bbc37
push 0
lea eax, [esp + 0x44]
push eax
mov eax, dword [esp + 0x1c0]
lea ecx, [esp + 0x28]
push ecx
mov ecx, dword [0x3fa0b8]
lea edx, [esp + 0xa0]
push edx
push eax
push esi
call dword [esi + ecx*4 + fcn.000128fc]
mov edx, dword [esp + 0x2c]
mov eax, dword [esi + 0x20d8c]
mov ecx, dword [esp + 0x1c8]
push edx
add ebx, 1
push ebx
lea edx, [ecx + eax*4 + 0x15]
push edx
push esi
call fcn.003bc480
add esp, 0x28
cmp byte [esp + 0x11], 0
je 0x3bbe3e
cmp dword [esi + 0x11d0c], 0
je 0x3bbd0b
mov ecx, dword [esp + 0x1b4]
mov dword [esi + 0x20c4c], ecx
mov eax, dword [esi + 8]
mov eax, dword [eax]
or ch, 0x10
add eax, 4
shl ecx, 4
mov dword [eax - 4], ecx
mov ecx, dword [esi + 8]
mov dword [ecx], eax
mov edx, dword [esi + 8]
cmp eax, dword [edx + 4]
jb 0x3bbd0b
push 0
xor edx, edx
mov ecx, esi
call fcn.003bfc90
mov eax, dword [esp + 0x34]
cdq
sub eax, edx
sar eax, 1
add dword [esp + 0x24], eax
add dword [esp + 0x2c], eax
mov eax, dword [esp + 0x1b0]
mov ecx, dword [esi + eax*8 + 0x20e60]
mov edx, dword [esi + eax*8 + 0x20e64]
add ecx, ebp
push 0
adc edx, edi
mov dword [esp + 0x98], ecx
lea eax, [esp + 0x44]
push eax
mov eax, dword [esp + 0x1c0]
lea ecx, [esp + 0x28]
push ecx
mov ecx, dword [0x3fa0b8]
mov dword [esp + 0xa4], edx
lea edx, [esp + 0xa0]
push edx
push eax
push esi
call dword [esi + ecx*4 + fcn.000128fc]
mov eax, dword [esp + 0x98]
mov edx, dword [esp + 0x94]
mov ecx, dword [esp + 0x1cc]
mov dword [esp + 0xb0], eax
mov eax, dword [esp + 0x4c]
mov dword [esp + 0xac], edx
cdq
sub eax, edx
mov edx, dword [esi + 0x20d8c]
sar eax, 1
neg eax
add dword [esp + 0x3c], eax
add dword [esp + 0x44], eax
mov eax, dword [esp + 0x1c8]
push ecx
push ebx
lea ecx, [eax + edx*4 + 0x15]
push ecx
push esi
call fcn.003b7a00
mov edx, dword [esp + 0x1dc]
mov eax, dword [esi + 0x20d8c]
mov ecx, dword [esp + 0x1d8]
push edx
add ebx, 1
push ebx
lea edx, [ecx + eax*4 + 0x15]
push edx
push esi
call fcn.003bc480
mov eax, dword [esp + 0x4c]
mov ecx, dword [esi + 0x20d8c]
mov edx, dword [esp + 0x1e8]
push eax
push ebx
lea eax, [edx + ecx*4 + 0x15]
push eax
push esi
call fcn.003b7a00
add esp, 0x48
cmp dword [esi + 0x11d0c], 0
je 0x3bbe3e
mov ecx, dword [esp + 0x14]
mov dword [esi + 0x20c4c], ecx
mov edx, dword [esi + 8]
mov eax, dword [edx]
or ch, 0x10
add eax, 4
shl ecx, 4
mov dword [eax - 4], ecx
mov ecx, dword [esi + 8]
mov dword [ecx], eax
mov edx, dword [esi + 8]
cmp eax, dword [edx + 4]
jb 0x3bbe3e
push 0
xor edx, edx
mov ecx, esi
call fcn.003bfc90
mov eax, dword [esi + 0x20d8c]
mov ecx, dword [esp + 0x50]
mov dword [esi + eax*4 + 0x20d0c], ebx
cmp dword [esi + 0x11d0c], 0
mov dword [esp + 0x1c], ecx
je 0x3bbe92
mov ecx, dword [esp + 0x1b4]
mov dword [esi + 0x20c4c], ecx
mov edx, dword [esi + 8]
mov eax, dword [edx]
or ch, 0x10
add eax, 4
shl ecx, 4
mov dword [eax - 4], ecx
mov ecx, dword [esi + 8]
mov dword [ecx], eax
mov edx, dword [esi + 8]
cmp eax, dword [edx + 4]
jb 0x3bbe92
push 0
xor edx, edx
mov ecx, esi
call fcn.003bfc90
mov eax, dword [esp + 0x1b4]
mov ecx, dword [esi + 0x20d8c]
mov edx, dword [esp + 0x1b0]
push eax
push ebx
lea eax, [edx + ecx*4 + 0x15]
push eax
push esi
call fcn.003b7a00
mov ecx, dword [esp + 0x78]
add esp, 0x10
add ebp, dword [esp + 0x54]
mov dword [esp + 0x9c], ecx
adc edi, dword [esp + 0x58]
cmp byte [esp + 0x1cc], 0
mov dword [esp + 0x94], ebp
mov dword [esp + 0x98], edi
je 0x3bc203
cmp byte [esp + 0x12], 0
je 0x3bbf16
push 0
lea edx, [esp + 0x44]
push edx
mov eax, edx
push eax
mov eax, dword [0x3fa0b8]
lea ecx, [esp + 0x128]
push ecx
lea edx, [esp + 0xa4]
push edx
push esi
call dword [esi + eax*4 + fcn.000128fc]
add esp, 0x18
mov ecx, dword [esp + 0x48]
mov edx, dword [esp + 0x4c]
sub ecx, dword [esp + 0x40]
sub edx, dword [esp + 0x44]
cmp byte [esp + 0x13], 0
mov ebp, dword [esp + 0x18]
mov dword [ebp + 0x30], ecx
mov dword [ebp + 0x34], edx
jne 0x3bc015
mov eax, dword [esp + 0x1bc]
mov edi, dword [esp + 0x1ac]
mov ecx, dword [0x3fa0b8]
push eax
push ebp
push edi
push esi
call dword [esi + ecx*4 + 0x1290c]
add esp, 0x10
cmp byte [esp + 0x11], 0
je 0x3bc007
cmp dword [esi + 0x11d0c], 0
je 0x3bbfa4
mov ecx, dword [esp + 0x14]
mov dword [esi + 0x20c4c], ecx
mov edx, dword [esi + 8]
mov eax, dword [edx]
or ch, 0x10
add eax, 4
shl ecx, 4
mov dword [eax - 4], ecx
mov ecx, dword [esi + 8]
mov dword [ecx], eax
mov edx, dword [esi + 8]
cmp eax, dword [edx + 4]
jb 0x3bbfa4
push 0
xor edx, edx
mov ecx, esi
call fcn.003bfc90
mov eax, dword [esp + 0x1bc]
mov ecx, dword [0x3fa0b8]
push eax
push ebp
push edi
push esi
call dword [esi + ecx*4 + 0x1290c]
mov edi, dword [esp + 0x1c4]
add esp, 0x10
cmp dword [esi + 0x11d0c], 0
je 0x3bc00e
mov ecx, edi
or ch, 0x10
mov dword [esi + 0x20c4c], edi
mov edx, dword [esi + 8]
mov eax, dword [edx]
add eax, 4
shl ecx, 4
mov dword [eax - 4], ecx
mov edx, dword [esi + 8]
mov dword [edx], eax
mov ecx, dword [esi + 8]
cmp eax, dword [ecx + 4]
jb 0x3bc00e
push 0
xor edx, edx
mov ecx, esi
call fcn.003bfc90
mov byte [esp + 0x13], 1
jmp 0x3bc01c
mov edi, dword [esp + 0x1b4]
mov byte [esp + 0x13], 1
jmp 0x3bc01c
mov edi, dword [esp + 0x1b4]
mov eax, dword [esp + 0x1bc]
mov ecx, dword [esp + 0x1ac]
lea edx, [esp + 0x20]
push edx
mov edx, dword [0x3fa0b8]
push eax
push ebp
push ecx
push esi
call dword [esi + edx*4 + 0x12914]
add esp, 0x14
cmp byte [esp + 0x11], 0
je 0x3bc165
mov eax, dword [esp + 0x20]
mov edx, dword [esp + 0x28]
mov ecx, dword [esp + 0x24]
mov ebp, dword [esp + 0x2c]
mov dword [esp + 0x84], eax
mov eax, dword [esp + 0x34]
mov dword [esp + 0x8c], edx
cdq
sub eax, edx
sar eax, 1
add ecx, eax
mov dword [esp + 0x88], ecx
mov ecx, dword [esp + 0x70]
add eax, ecx
add ebp, eax
cmp dword [esi + 0x11d0c], 0
mov dword [esp + 0x90], ebp
je 0x3bc0c9
mov ecx, dword [esp + 0x14]
mov dword [esi + 0x20c4c], ecx
mov edx, dword [esi + 8]
mov eax, dword [edx]
or ch, 0x10
add eax, 4
shl ecx, 4
mov dword [eax - 4], ecx
mov ecx, dword [esi + 8]
mov dword [ecx], eax
mov edx, dword [esi + 8]
cmp eax, dword [edx + 4]
jb 0x3bc0c9
push 0
xor edx, edx
mov ecx, esi
call fcn.003bfc90
mov ecx, dword [esp + 0x1bc]
mov edx, dword [esp + 0x18]
lea eax, [esp + 0x84]
push eax
mov eax, dword [esp + 0x1b0]
push ecx
mov ecx, dword [0x3fa0b8]
push edx
push eax
push esi
call dword [esi + ecx*4 + 0x12914]
mov edx, dword [esp + 0x28]
mov eax, dword [esi + 0x20d8c]
mov ebp, dword [esp + 0x1c4]
push edx
add ebx, 1
push ebx
lea ecx, [ebp + eax*4 + 0x15]
push ecx
push esi
call fcn.003bc480
mov edx, dword [esi + 0x20d8c]
push edi
push ebx
lea eax, [ebp + edx*4 + 0x15]
push eax
push esi
call fcn.003b7a00
add esp, 0x34
cmp dword [esi + 0x11d0c], 0
je 0x3bc165
mov edx, edi
or dh, 0x10
mov dword [esi + 0x20c4c], edi
mov ecx, dword [esi + 8]
mov eax, dword [ecx]
add eax, 4
shl edx, 4
mov dword [eax - 4], edx
mov ecx, dword [esi + 8]
mov dword [ecx], eax
mov edx, dword [esi + 8]
cmp eax, dword [edx + 4]
jb 0x3bc165
push 0
xor edx, edx
mov ecx, esi
call fcn.003bfc90
cmp dword [esp + 0x74], 0
jne 0x3bc236
mov eax, dword [esp + 0x14]
or eax, edi
cmp dword [esi + 0x11d0c], 0
je 0x3bc1ae
mov dword [esi + 0x20c4c], eax
mov ecx, dword [esi + 8]
mov ecx, dword [ecx]
or ah, 0x10
add ecx, 4
shl eax, 4
mov dword [ecx - 4], eax
mov edx, dword [esi + 8]
mov dword [edx], ecx
mov eax, dword [esi + 8]
cmp ecx, dword [eax + 4]
jb 0x3bc1ae
push 0
xor edx, edx
mov ecx, esi
call fcn.003bfc90
mov ecx, dword [esp + 0x1ac]
mov edx, dword [0x3fa0b8]
push ecx
push esi
call dword [esi + edx*4 + 0x1291c]
add esp, 8
cmp dword [esi + 0x11d0c], 0
je 0x3bc236
mov ecx, edi
or ch, 0x10
mov dword [esi + 0x20c4c], edi
mov eax, dword [esi + 8]
mov eax, dword [eax]
add eax, 4
shl ecx, 4
mov dword [eax - 4], ecx
mov edx, dword [esi + 8]
mov dword [edx], eax
mov ecx, dword [esi + 8]
cmp eax, dword [ecx + 4]
jb 0x3bc236
push 0
xor edx, edx
mov ecx, esi
call fcn.003bfc90
jmp 0x3bc236
mov ecx, dword [esp + 0x1b8]
push 0
lea edx, [esp + 0x24]
push edx
lea eax, [esp + 0x48]
push eax
mov eax, dword [0x3fa0b8]
push ecx
lea edx, [esp + 0xa4]
push edx
push esi
call dword [esi + eax*4 + fcn.000128fc]
mov edi, dword [esp + 0x1cc]
add esp, 0x18
add ebx, 1
mov eax, edi
xor ebp, ebp
test edi, edi
mov dword [esp + 0x30], eax
je 0x3bc279
test al, 1
je 0x3bc26c
mov eax, dword [esi + 0x20d8c]
mov ecx, ebp
mov edx, 1
shl edx, cl
lea ecx, [ebp + eax*4 + 0x15]
push edx
push ebx
push ecx
push esi
call fcn.003bc480
mov eax, dword [esp + 0x40]
add esp, 0x10
sar eax, 1
add ebp, 1
test eax, eax
mov dword [esp + 0x30], eax
jne 0x3bc245
mov edx, dword [esi + 0x20d8c]
mov dword [esi + edx*4 + 0x20d4c], edi
mov eax, dword [esi + 0x20d8c]
mov dword [esi + eax*4 + 0x20d0c], ebx
mov eax, dword [esi + 0x11cc4]
cmp byte [eax + 0x18], 0
jne 0x3bc2c3
mov edi, dword [eax]
cmp byte [edi + 0x3d], 0
jne 0x3bc2c3
mov ecx, edi
mov edx, dword [ecx + 8]
mov ecx, dword [ecx + 0x40]
mov ebp, dword [edx + 0xc]
lea ecx, [ebp + ecx*4]
cmp dword [edx], ecx
jne 0x3bc2c3
cmp dword [edi + 0x11c28], 0
jbe 0x3bc2cb
push 0
push eax
call fcn.003c0490
mov eax, dword [esi + 0x20d8c]
mov ecx, dword [esi + 0x12544]
add eax, 1
xor edx, edx
div dword [ecx + 0x103fc]
mov ebp, dword [esp + 0x24]
mov edi, dword [esp + 0x74]
mov eax, dword [esp + 0x6c]
mov dword [esi + 0x20d8c], edx
test edi, edi
jg 0x3bba71
mov edx, dword [esp + 0x1c8]
mov dword [edx], ebx
cmp dword [esi + 0x20c4c], eax
je 0x3bc345
cmp dword [esi + 0x11d0c], 0
je 0x3bc345
mov dword [esi + 0x20c4c], eax
mov ecx, dword [esi + 8]
mov ecx, dword [ecx]
or ah, 0x10
add ecx, 4
shl eax, 4
mov dword [ecx - 4], eax
mov edx, dword [esi + 8]
mov dword [edx], ecx
mov eax, dword [esi + 8]
cmp ecx, dword [eax + 4]
jb 0x3bc345
push 0
xor edx, edx
mov ecx, esi
call fcn.003bfc90
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x194
ret