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

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x8c
mov eax, dword [0x87100004]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x10]
mov eax, dword [eax + 4]
push ebx
movzx ebx, byte [eax + 1]
dec ebx
dec ebx
shr ebx, 3
push esi
mov esi, dword [ebp + 8]
mov dword [ebp - 0x6c], ebx
test ebx, ebx
jne 0x83738d47
test byte [esi + 0x19e], 2
je 0x83738d40
mov eax, dword [esi + 0x1d0]
mov eax, dword [eax + 8]
inc dword [eax + 0x1c]
xor al, al
jmp 0x837394cf
test byte [esi + 0x19e], 2
je 0x83738d66
lea eax, [esi + 0x1d0]
mov ecx, dword [eax]
mov ecx, dword [ecx + 8]
inc dword [ecx + 0x1c]
mov eax, dword [eax]
mov eax, dword [eax + 8]
add dword [eax + 0x20], ebx
push esi
call fcn.837380bc
test eax, eax
je 0x83738d40
push edi
mov edi, dword [esi + 0x1e4]
cmp dword [edi + 0x14], 6
jbe 0x83738d98
mov eax, dword [esi + 0x4c]
sub eax, dword [esi + 0x44]
push eax
call fcn.83799985
movzx eax, al
cmp dword [edi + 0x14], eax
jbe 0x83738d98
xor al, al
jmp 0x837394ce
mov eax, dword [ebp + 0x10]
mov eax, dword [eax + 4]
mov ecx, dword [eax + 2]
mov eax, dword [eax + 6]
mov edx, dword [edi + 0x18]
and dword [ebp - 0x54], 0
bswap ecx
bswap eax
mov dword [ebp - 0x48], ecx
mov dword [ebp - 0x4c], eax
mov dword [ebp - 0x7c], edx
test ebx, ebx
jbe 0x837394bb
lea edx, [ebx - 1]
cmp dword [ebp - 0x54], edx
jae 0x83738de6
mov edx, dword [ebp + 0x10]
mov edx, dword [edx + 4]
mov edi, dword [ebp - 0x54]
lea edx, [edx + edi*8]
mov edi, dword [edx + 0xa]
mov edx, dword [edx + 0xe]
bswap edi
bswap edx
mov dword [ebp - 0x70], edi
mov dword [ebp - 0x60], edx
jmp 0x83738dee
and dword [ebp - 0x60], 0
and dword [ebp - 0x70], 0
mov edx, ecx
sub edx, eax
jns 0x837394a3
mov edx, dword [esi + 0x44]
mov dword [ebp - 0x50], ecx
sub dword [ebp - 0x50], edx
js 0x83738e0c
mov edx, dword [esi + 0x4c]
mov edi, ecx
sub edi, edx
js 0x83738e28
mov edx, eax
sub edx, dword [esi + 0x44]
test edx, edx
jle 0x837394a3
mov edx, dword [esi + 0x4c]
mov edi, eax
sub edi, edx
test edi, edi
jg 0x837394a3
cmp dword [ebp - 0x54], 0
jne 0x83738e55
mov edi, ecx
sub edi, dword [ebp + 0xc]
js 0x83738e4a
cmp ebx, 1
jbe 0x83738e55
mov edi, ecx
sub edi, dword [ebp - 0x70]
js 0x83738e55
mov edi, eax
sub edi, dword [ebp - 0x60]
test edi, edi
jg 0x83738e55
inc byte [esi + 0x16b]
jmp 0x837394a3
cmp dword [ebp - 0x50], 0
jge 0x83738e6b
mov ecx, dword [esi + 0x44]
mov edi, ecx
sub edi, eax
mov dword [ebp - 0x48], ecx
jns 0x837394a3
mov edi, eax
sub edi, edx
test edi, edi
jle 0x83738e82
mov eax, edx
mov edx, ecx
sub edx, eax
mov dword [ebp - 0x4c], eax
jns 0x837394a3
mov di, word [esi + 0x40]
mov edx, 0x3000
mov ebx, edx
and di, bx
cmp di, dx
jne 0x837390d9
cmp dword [esi + 0x154], 0
je 0x837390d9
mov edx, dword [esi + 0x150]
mov edi, edx
sub edi, ecx
js 0x837390d9
sub edx, eax
test edx, edx
jg 0x837390d9
push 0
call dword [0x870f4184]
test dword [0x8710ea3c], 0x100
jne 0x83738f4f
lea eax, [ebp - 0x78]
push eax
call dword [0x870f47d4]
push dword [ebp - 0x74]
mov dword [ebp - 0x8c], eax
push dword [ebp - 0x78]
mov edi, 0xf4240
mov eax, edx
mov ecx, edi
mul ecx
push edx
push eax
call fcn.83777c00
mov dword [ebp - 0x84], eax
mov eax, dword [ebp - 0x8c]
mov dword [ebp - 0x80], edx
mul edi
push 1
push 0
mov edi, eax
push ebx
mov eax, edx
push ecx
mov dword [ebp - 0x58], eax
call fcn.83781380
push dword [ebp - 0x74]
add edi, eax
push dword [ebp - 0x78]
mov eax, dword [ebp - 0x58]
adc eax, edx
push eax
push edi
call fcn.83781310
push 1
push 0
push dword [ebp - 0x80]
mov ebx, eax
push dword [ebp - 0x84]
mov edi, edx
call fcn.83781380
add ebx, eax
adc edi, edx
jmp 0x83738f5b
push 0
push eax
call fcn.837779e7
mov ebx, eax
mov edi, edx
push 0
push 0x2710
push edi
push ebx
call fcn.83781310
mov ebx, eax
mov dword [ebp - 0x58], ebx
sub ebx, dword [esi + 0x154]
cmp ebx, 0xbb8
jbe 0x83738f81
mov ebx, 0xbb8
push ebx
push esi
call fcn.83759200
and dword [esi + 0x154], 0
push esi
call fcn.8375a299
cmp ebx, eax
jbe 0x83738fa7
and dword [esi + 0x174], 0xfffffffe
push ebx
push esi
call fcn.83759200
and dword [esi + 0x158], 0
mov eax, 0x8fff
and word [esi + 0x40], ax
cmp dword [0x87107e34], 1
jne 0x8373903d
mov al, byte [0x87107e38]
cmp al, 4
jae 0x83738fcd
test al, al
jne 0x8373903d
mov edx, dword [0x87107e24]
mov ecx, 0x80000040
and edx, ecx
xor eax, eax
or eax, edx
je 0x8373903d
mov edx, dword [0x87107e2c]
mov eax, edx
and eax, ecx
xor ecx, ecx
cmp ecx, dword [0x87107e28]
jne 0x8373903d
cmp eax, edx
jne 0x8373903d
movzx ecx, word [esi + 0x14c]
imul ebx, ebx, 0xa
xor eax, eax
lea edi, [ebp - 0x34]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
xor eax, eax
push eax
push eax
push eax
push eax
shr ecx, 3
imul ecx, ecx, 0xa
push ecx
push eax
push eax
push eax
push eax
push ebx
push eax
push eax
push esi
lea eax, [ebp - 0x34]
push eax
push 0x870f4e90
push dword [0x87107e0c]
mov dword [ebp - 0x34], esi
push dword [0x87107e08]
call fcn.8379955e
mov eax, dword [esi + 0x44]
sub eax, dword [esi + 0x4c]
jns 0x837390d9
push esi
call fcn.83756bed
push dword [ebp - 0x58]
mov ebx, eax
push ebx
push 0
push esi
call fcn.837579ae
cmp dword [0x87107e34], 1
jne 0x837390d9
mov al, byte [0x87107e38]
cmp al, 5
jae 0x83739073
test al, al
jne 0x837390d9
mov eax, dword [0x87107e20]
mov ecx, dword [0x87107e24]
and eax, 4
and ecx, 0x80000800
or eax, ecx
je 0x837390d9
mov edx, dword [0x87107e28]
mov edi, dword [0x87107e2c]
mov eax, edx
mov ecx, edi
and eax, 4
and ecx, 0x80000800
cmp eax, edx
jne 0x837390d9
cmp ecx, edi
jne 0x837390d9
xor eax, eax
imul ebx, ebx, 0xa
lea edi, [ebp - 0x44]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
push ebx
stosd dword es:[edi], eax
push 0
push esi
stosd dword es:[edi], eax
lea eax, [ebp - 0x44]
push eax
push 0x870f4c40
push dword [0x87107e0c]
mov dword [ebp - 0x44], esi
push dword [0x87107e08]
call fcn.837994a1
mov eax, 0x800
test word [esi + 0x40], ax
jne 0x837391ab
test dword [esi + 0x174], 0x400000
jne 0x837391ab
mov ecx, dword [esi + 0x3c]
mov eax, 0x80000000
and ecx, eax
cmp ecx, eax
jne 0x837391ab
mov edx, dword [esi + 0x78]
mov eax, edx
sub eax, dword [ebp - 0x48]
js 0x837391ab
mov eax, edx
sub eax, dword [ebp - 0x4c]
test eax, eax
jg 0x837391ab
cmp dword [0x87107e34], 1
jne 0x83739192
mov al, byte [0x87107e38]
cmp al, 4
jae 0x8373913b
test al, al
jne 0x83739192
mov ecx, dword [0x87107e24]
mov edi, 0x80000001
and ecx, edi
xor eax, eax
or eax, ecx
je 0x83739192
mov ebx, dword [0x87107e2c]
mov eax, ebx
xor ecx, ecx
and eax, edi
cmp ecx, dword [0x87107e28]
jne 0x83739192
cmp eax, ebx
jne 0x83739192
xor eax, eax
push 1
lea edi, [ebp - 0x24]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
push ecx
push ecx
stosd dword es:[edi], eax
push edx
push esi
stosd dword es:[edi], eax
lea eax, [ebp - 0x24]
push eax
push 0x870f5350
push dword [0x87107e0c]
mov dword [ebp - 0x24], esi
push dword [0x87107e08]
call fcn.83799691
or dword [esi + 0x174], 0x400000
push 0
call dword [0x870f4184]
push eax
push esi
call fcn.83740e40
mov edi, dword [esi + 0x1e4]
xor eax, eax
lea ebx, [edi + 0x10]
mov dword [ebp - 0x50], eax
mov dword [ebp - 0x58], eax
mov dword [ebp - 0x64], eax
mov dword [ebp - 0x68], eax
mov dword [ebp - 0x5c], eax
cmp dword [ebx], eax
je 0x8373932e
mov eax, dword [ebx]
mov ecx, dword [eax + 4]
cmp ecx, dword [edi + 0x28]
jne 0x837391e6
mov ecx, dword [ebp - 0x68]
mov dword [ebp - 0x58], ecx
mov ecx, dword [ebp - 0x5c]
mov dword [ebp - 0x50], eax
mov dword [ebp - 0x64], ecx
mov ecx, dword [eax + 8]
mov edx, dword [ebp - 0x48]
sub edx, ecx
test edx, edx
jle 0x8373920b
sub ecx, dword [eax + 4]
mov edx, dword [eax + 0xc]
add dword [ebp - 0x68], edx
add dword [ebp - 0x5c], ecx
mov ebx, eax
cmp dword [ebx], 0
je 0x8373932e
jmp 0x837391cd
mov ecx, dword [ebp - 0x4c]
sub ecx, dword [eax + 4]
js 0x8373932e
push dword [ebp - 0x4c]
push dword [ebp - 0x48]
push eax
call fcn.8379995b
test al, al
jne 0x83739328
inc dword [edi + 0x18]
mov eax, dword [ebx]
inc dword [eax + 0xc]
mov eax, dword [ebx]
mov edx, dword [ebp - 0x48]
mov eax, dword [eax + 4]
mov ecx, edx
sub ecx, eax
jns 0x83739276
mov ecx, dword [esi + 0x1e4]
sub eax, edx
add dword [ecx + 0x1c], eax
mov eax, dword [ebx]
mov dword [eax + 4], edx
mov eax, dword [ebp - 0x50]
cmp eax, dword [ebx]
jne 0x83739276
mov ecx, dword [esi + 0x1e4]
mov eax, dword [eax + 4]
mov dword [ecx + 0x28], eax
mov eax, dword [esi + 0x1e4]
mov ecx, dword [eax + 0x28]
sub ecx, dword [esi + 0x44]
sub ecx, dword [ebp - 0x64]
mov dword [eax + 0x24], ecx
mov eax, dword [ebx]
mov ecx, dword [eax + 8]
mov eax, dword [ebp - 0x4c]
sub eax, ecx
test eax, eax
jle 0x83739328
mov eax, dword [esi + 0x1e4]
mov edx, dword [ebp - 0x4c]
sub edx, ecx
mov ecx, dword [ebp - 0x4c]
xor edi, edi
add dword [eax + 0x1c], edx
mov eax, dword [ebx]
mov dword [eax + 8], ecx
jmp 0x83739300
mov ecx, dword [ebp - 0x4c]
sub ecx, dword [eax + 4]
js 0x8373931f
mov ecx, dword [esi + 0x1e4]
dec dword [ecx + 0x14]
mov ecx, dword [ebx]
mov edx, dword [eax + 0xc]
add dword [ecx + 0xc], edx
mov ecx, dword [ebx]
mov edx, dword [eax]
mov dword [ecx], edx
mov ecx, dword [esi + 0x1e4]
mov edx, dword [ecx + 0x28]
cmp edx, dword [eax + 4]
jne 0x837392e9
mov edx, dword [ebx]
mov edx, dword [edx + 4]
mov dword [ecx + 0x28], edx
mov ecx, dword [esi + 0x1e4]
mov edx, dword [ecx + 0x28]
sub edx, dword [esi + 0x44]
sub edx, dword [ebp - 0x5c]
mov dword [ecx + 0x24], edx
mov ecx, dword [eax + 8]
mov edx, dword [ebp - 0x4c]
sub edx, ecx
push eax
test edx, edx
jle 0x8373930a
sub ecx, dword [eax + 4]
add edi, ecx
call fcn.83773c13
mov eax, dword [ebx]
mov eax, dword [eax]
test eax, eax
je 0x8373931f
jmp 0x837392a2
mov ecx, dword [ebx]
mov edx, dword [eax + 8]
mov dword [ecx + 8], edx
mov ecx, dword [ebp - 0x4c]
sub ecx, dword [eax + 4]
add edi, ecx
call fcn.83773c13
mov eax, dword [esi + 0x1e4]
sub dword [eax + 0x1c], edi
mov eax, dword [ebp - 0x4c]
mov dword [ebp - 0x48], eax
mov eax, dword [ebp - 0x48]
sub eax, dword [ebp - 0x4c]
jns 0x83739421
push dword [0x8710e0e0]
call fcn.83773c08
test eax, eax
jne 0x83739356
mov eax, dword [ebp - 0x6c]
mov dword [ebp - 0x54], eax
mov ebx, eax
jmp 0x837394a3
mov ecx, dword [ebp - 0x48]
mov dword [eax + 4], ecx
mov ecx, dword [ebp - 0x4c]
mov dword [eax + 8], ecx
xor edx, edx
inc edx
mov dword [eax + 0xc], edx
mov ecx, dword [ebx]
mov dword [eax], ecx
mov dword [ebx], eax
mov ecx, dword [esi + 0x1e4]
inc dword [ecx + 0x14]
mov edi, dword [eax + 0xc]
mov ecx, dword [esi + 0x1e4]
add dword [ecx + 0x18], edi
mov edi, dword [eax + 8]
sub edi, dword [eax + 4]
mov ecx, dword [esi + 0x1e4]
add dword [ecx + 0x1c], edi
mov eax, dword [esi + 0x1e4]
cmp dword [eax + 0x14], edx
jne 0x83739421
cmp dword [0x87107e34], edx
jne 0x83739421
mov al, byte [0x87107e38]
cmp al, 4
jae 0x837393b6
test al, al
jne 0x83739421
mov eax, dword [0x87107e20]
mov ecx, dword [0x87107e24]
mov edx, 0x80
mov edi, 0x80000002
and eax, edx
and ecx, edi
or eax, ecx
je 0x83739421
mov eax, dword [0x87107e28]
mov ecx, eax
and ecx, edx
mov edx, dword [0x87107e2c]
and edx, edi
cmp ecx, eax
jne 0x83739421
cmp edx, dword [0x87107e2c]
jne 0x83739421
xor eax, eax
push 0
lea edi, [ebp - 0x14]
stosd dword es:[edi], eax
push 0
push dword [esi + 0x4c]
stosd dword es:[edi], eax
push dword [esi + 0x44]
stosd dword es:[edi], eax
push esi
stosd dword es:[edi], eax
lea eax, [ebp - 0x14]
push eax
push 0x870f4d90
push dword [0x87107e0c]
mov dword [ebp - 0x14], esi
push dword [0x87107e08]
call fcn.83799691
mov ecx, dword [ebx]
mov eax, dword [esi + 0x1e4]
mov ecx, dword [ecx + 4]
sub ecx, dword [eax + 0x28]
test ecx, ecx
jle 0x837394a0
xor edx, edx
cmp dword [ebp - 0x50], edx
jne 0x83739442
mov eax, dword [eax + 0x10]
mov dword [ebp - 0x48], edx
jmp 0x8373944e
mov ecx, dword [ebp - 0x64]
mov eax, dword [ebp - 0x50]
mov edx, dword [ebp - 0x58]
mov dword [ebp - 0x48], ecx
mov ecx, dword [esi + 0x1e4]
mov edi, dword [ecx + 0x18]
sub edi, edx
cmp edi, 3
jae 0x8373946e
mov edi, dword [esi + 0x6c]
mov ecx, dword [ecx + 0x1c]
imul edi, edi, 3
sub ecx, dword [ebp - 0x48]
cmp ecx, edi
jb 0x837394a0
mov edi, dword [eax + 4]
mov ecx, dword [esi + 0x1e4]
mov dword [ecx + 0x28], edi
mov ecx, dword [esi + 0x1e4]
mov edi, dword [ecx + 0x28]
sub edi, dword [esi + 0x44]
sub edi, dword [ebp - 0x48]
mov dword [ecx + 0x24], edi
mov ecx, dword [eax + 8]
sub ecx, dword [eax + 4]
add edx, dword [eax + 0xc]
add dword [ebp - 0x48], ecx
mov eax, dword [eax]
mov ecx, dword [ebx]
cmp eax, dword [ecx]
jne 0x8373944e
mov ebx, dword [ebp - 0x6c]
inc dword [ebp - 0x54]
mov ecx, dword [ebp - 0x70]
mov eax, dword [ebp - 0x60]
mov dword [ebp - 0x48], ecx
mov dword [ebp - 0x4c], eax
cmp dword [ebp - 0x54], ebx
jb 0x83738dc0
mov eax, dword [esi + 0x1e4]
mov edx, dword [ebp - 0x7c]
xor ecx, ecx
cmp edx, dword [eax + 0x18]
setne cl
mov al, cl
pop edi
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.83781dcc
leave
ret 0xc