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

Disassembly:
sub esp, 0x164
push ebp
mov ebp, dword [esp + 0x170]
push esi
push edi
mov edi, dword [esp + 0x174]
push ebp
push edi
mov esi, ecx
call fcn.300b58f0
test al, al
jne 0x300b8914
mov ecx, dword [edi + 4]
push ebx
call fcn.300d5800
mov ebx, eax
test ebx, ebx
je 0x300b8913
mov eax, dword [ebx + 0x2c]
mov ecx, dword [eax + 0xdc]
mov edx, dword [ecx + 0x1c]
mov eax, dword [edx + 0x834]
push eax
mov dword [esp + 0x40], eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
fld dword [ebp + 0x1c]
movsx eax, word [ebp + 0x24]
fst dword [esp + 0x54]
fld dword [ebp + 0x20]
mov ecx, dword [edi + 0x40]
mov edx, dword [edi + 0x44]
mov dword [esp + 0x38], eax
mov eax, dword [edi + 0x3c]
mov dword [esp + 0xcc], eax
fild dword [esp + 0x38]
movzx eax, word [ebp + 0x26]
fmul dword [0x3029acac]
mov dword [esp + 0xbc], ecx
imul eax, eax, 0x1c
fst dword [esp + 0x20]
fld st(2)
fstp dword [esp + 0xac]
fld st(1)
fstp dword [esp + 0xb0]
fstp dword [esp + 0xb4]
fxch st(1)
movzx ecx, byte [edi + 0x58]
fstp dword [esp + 0xc4]
fstp dword [esp + 0xc8]
mov dword [esp + 0xc0], edx
movzx edx, byte [edi + 0x59]
mov dword [esp + 0xd0], ecx
mov ecx, dword [edi + 0x48]
add eax, ecx
mov dword [esp + 0xb8], 0x48
mov dword [esp + 0xd4], edx
mov edx, dword [eax + 0x14]
mov dword [esp + 0xd8], edx
mov ecx, dword [eax + 0x18]
mov dword [esp + 0xdc], ecx
mov edx, dword [eax + 0x10]
mov dword [esp + 0xe0], edx
mov ecx, dword [ebx + 0x2c]
mov eax, dword [ecx + 0x218]
test eax, eax
mov byte [esp + 0x38], 0
jne 0x300b82d1
call fcn.300e4110
cmp eax, 9
jl 0x300b82db
mov byte [esp + 0x38], 1
mov eax, dword [ebx + 0x2c]
mov ecx, dword [eax + 0xdc]
call fcn.300f88b0
fld dword [0x302fd40c]
fld dword [edi + 0x3c]
cmp eax, 9
fucompp
setge cl
mov byte [esp + 0x1f], 1
fnstsw ax
test ah, 0x44
jnp 0x300b8316
mov dword [esp + 0xd4], 0
mov byte [esp + 0x1f], 0
movzx edx, word [ebp + 0x14]
xor eax, eax
mov dword [esp + 0x2c], eax
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], eax
mov eax, dword [ebp + 0x18]
mov dword [esp + 0x40], eax
mov dword [esp + 0x74], eax
xor eax, eax
mov dword [esp + 0x14], eax
mov dword [esp + 0x10], eax
mov al, byte [esp + 0x1f]
test al, al
mov dword [esp + 0x28], 0
mov dword [esp + 0x44], edx
mov dword [esp + 0x78], edx
je 0x300b84e1
fld dword [esp + 0x54]
fmul dword [0x302996f0]
fst dword [esp + 0x14]
fstp dword [esp + 0x18]
fld dword [esp + 0x18]
fistp dword [esp + 0x24]
mov edx, dword [esp + 0x14]
mov dword [esp + 0x18], edx
fld dword [esp + 0x18]
fistp dword [esp + 0x14]
fld dword [esp + 0x20]
mov eax, dword [esp + 0x14]
fmul dword [0x302996f0]
mov edx, dword [esp + 0x24]
and eax, 0xffff
shl edx, 0x10
fstp dword [esp + 0x18]
or eax, edx
mov dword [esp + 0x7c], eax
fld dword [esp + 0x18]
fistp dword [esp + 0x14]
fld dword [edi + 0x40]
fmul dword [0x302996f0]
mov eax, dword [esp + 0x14]
mov dword [esp + 0x80], eax
fstp dword [esp + 0x18]
fld dword [esp + 0x18]
fistp dword [esp + 0x14]
fld dword [edi + 0x44]
mov edx, dword [esp + 0x14]
fmul dword [0x302996f0]
mov dword [esp + 0x84], edx
fstp dword [esp + 0x18]
fld dword [esp + 0x18]
fistp dword [esp + 0x14]
mov eax, dword [esp + 0x14]
xor edx, edx
mov dh, byte [edi + 0x58]
mov dword [esp + 0x88], eax
movzx eax, word [ebp + 0x26]
imul eax, eax, 0x1c
mov dl, byte [edi + 0x59]
mov dword [esp + 0x8c], edx
mov edx, dword [edi + 0x48]
fld dword [eax + edx + 0x14]
fmul dword [0x302996f0]
fstp dword [esp + 0x18]
fld dword [esp + 0x18]
fistp dword [esp + 0x14]
movzx edx, word [ebp + 0x26]
mov eax, dword [esp + 0x14]
imul edx, edx, 0x1c
mov dword [esp + 0x90], eax
mov eax, dword [edi + 0x48]
fld dword [edx + eax + 0x18]
fmul dword [0x302996f0]
fstp dword [esp + 0x18]
fld dword [esp + 0x18]
fistp dword [esp + 0x14]
movzx eax, word [ebp + 0x26]
mov edx, dword [esp + 0x14]
imul eax, eax, 0x1c
mov dword [esp + 0x94], edx
mov edx, dword [edi + 0x48]
fld dword [eax + edx + 0x10]
fmul dword [0x302996f0]
fstp dword [esp + 0x18]
fld dword [esp + 0x18]
fistp dword [esp + 0x14]
mov eax, dword [esp + 0x14]
neg cl
mov dword [esp + 0x98], eax
mov al, byte [esp + 0x38]
sbb ecx, ecx
xor edx, edx
and ecx, 2
test al, al
mov eax, dword [esi + 0xc]
setne dl
or ecx, edx
test eax, eax
mov dword [esp + 0x9c], ecx
jne 0x300b84b3
mov ecx, esi
call fcn.300b4ee0
mov eax, dword [esi + 0xc]
lea ecx, [esp + 0x10]
push ecx
push 1
lea edx, [esp + 0x7c]
push edx
push eax
mov eax, dword [esi + 4]
push eax
call fcn.301633a0
mov ecx, eax
mov eax, dword [esp + 0x24]
add esp, 0x14
test eax, eax
mov dword [esp + 0x14], ecx
jne 0x300b886b
fld dword [esp + 0x20]
mov ecx, dword [ebx + 0x2c]
fmul dword [edi + 0x44]
mov ecx, dword [ecx + 0x260]
mov dword [esp + 0x18], ecx
fcomp dword [0x3029ac80]
fnstsw ax
test ah, 1
jne 0x300b850e
mov dword [esp + 0x18], 7
mov ecx, dword [esp + 0x18]
fld dword [esi + 0x38]
mov edx, dword [esi + 0x38]
fmul dword [0x302996f0]
mov eax, dword [esi + 0x34]
mov dword [esp + 0xa8], edx
mov dword [esp + 0xa0], ecx
fstp dword [esp + 0x20]
mov dword [esp + 0xa4], eax
fld dword [esp + 0x20]
fistp dword [esp + 0x54]
fld dword [esi + 0x34]
fmul dword [0x302996f0]
mov edx, dword [esp + 0x54]
mov dword [esp + 0x48], edx
mov dword [esp + 0x4c], ecx
fstp dword [esp + 0x54]
fld dword [esp + 0x54]
fistp dword [esp + 0x20]
mov eax, dword [esp + 0x20]
mov dword [esp + 0x50], eax
mov eax, dword [esi + 8]
test eax, eax
jne 0x300b8575
mov ecx, esi
call fcn.300b4e80
mov eax, dword [esi + 8]
lea ecx, [esp + 0x24]
push ecx
push 1
lea edx, [esp + 0x48]
push edx
push eax
mov eax, dword [esi + 4]
push eax
call fcn.301633a0
mov dword [esp + 0x34], eax
mov eax, dword [esp + 0x38]
add esp, 0x14
test eax, eax
jne 0x300b876e
mov ecx, dword [esp + 0x18]
mov eax, 7
cmp ecx, eax
jne 0x300b8618
mov ecx, dword [ebx + 0x2c]
mov edx, dword [ecx + 0x260]
lea eax, [esp + 0x24]
push eax
push 1
lea ecx, [esp + 0x48]
push ecx
mov ecx, esi
mov dword [esp + 0x58], edx
call fcn.300b4f40
mov edx, dword [esi + 4]
push eax
push edx
call fcn.301633a0
mov ecx, dword [esp + 0x38]
add esp, 0x14
cmp ecx, 1
jne 0x300b860e
lea eax, [esp + 0x40]
push eax
mov ecx, esi
call fcn.300b4f40
mov ecx, dword [esi + 4]
push eax
push ecx
call fcn.30163650
mov eax, dword [0x30336638]
xor ecx, ecx
add esp, 0xc
dec eax
mov dword [esp + 0x24], ecx
mov dword [0x30336638], eax
mov dword [esp + 0x4c], 7
jmp 0x300b8651
lea edx, [esp + 0x24]
push edx
mov dword [esp + 0x50], eax
push 1
lea eax, [esp + 0x48]
push eax
mov ecx, esi
call fcn.300b4f40
mov ecx, dword [esi + 4]
push eax
push ecx
call fcn.301633a0
mov ecx, dword [esp + 0x38]
add esp, 0x14
cmp ecx, 1
jne 0x300b8649
mov dword [esp + 0x20], eax
mov edx, dword [esp + 0x18]
mov dword [esp + 0x4c], edx
test ecx, ecx
jne 0x300b876e
mov ecx, dword [ebp + 0x10]
xor eax, eax
mov ax, word [ebp + 0x14]
push eax
push ecx
push esi
lea ecx, [esp + 0xf0]
call fcn.300b5200
mov edx, dword [ebx + 0x2c]
mov eax, dword [edx + 0xdc]
push eax
lea ecx, [esp + 0xe8]
call fcn.300b5f60
mov eax, dword [esp + 0xf4]
cmp dword [eax + 0x1c], 1
ja 0x300b86c3
mov dword [esp + 0xe4], 0x3029ac9c
lea ecx, [esp + 0xe4]
call fcn.300b5230
mov ecx, dword [esp + 0x3c]
push ecx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop ebx
pop edi
pop esi
pop ebp
add esp, 0x164
ret 8
mov edx, dword [ebx + 0x2c]
mov ecx, dword [edx + 0xdc]
mov edx, dword [ebp + 0x10]
push ecx
push eax
push edx
mov ecx, esi
call fcn.300b7390
mov ecx, dword [esp + 0xf4]
mov edx, dword [esi + 4]
lea eax, [esp + 0xa0]
push eax
push ecx
push edx
call fcn.30161e80
add esp, 0xc
test eax, eax
mov dword [esp + 0x54], eax
jne 0x300b8719
lea ecx, [esp + 0xe4]
mov dword [esp + 0xe4], 0x3029ac9c
call fcn.300b5230
jmp 0x300b8908
mov edx, dword [0x30336630]
inc edx
push eax
lea ecx, [esp + 0x44]
mov dword [0x30336630], edx
mov edx, dword [esp + 0x24]
push ecx
push edx
mov ecx, esi
call fcn.300b4f40
push eax
mov eax, dword [esi + 4]
push eax
call fcn.301634c0
add esp, 0x14
test eax, eax
lea ecx, [esp + 0xe4]
mov dword [esp + 0xe4], 0x3029ac9c
jne 0x300b86a6
mov edx, dword [esp + 0x54]
mov dword [esp + 0x20], edx
call fcn.300b5230
jmp 0x300b8774
inc dword [0x3033662c]
mov eax, dword [esp + 0x38]
push eax
lea ecx, [esp + 0x114]
push ecx
lea edx, [esp + 0x64]
push edx
lea eax, [esp + 0x34]
push eax
mov eax, dword [esp + 0x30]
lea ecx, [esp + 0x14c]
push ecx
mov ecx, dword [esi + 4]
lea edx, [esp + 0xc0]
push edx
push eax
push ecx
call fcn.30163d90
mov edx, dword [esp + 0x52]
mov eax, dword [esp + 0x50]
push 0xb
push edx
mov dl, byte [edi + 0x58]
xor ecx, ecx
test dl, dl
mov edx, dword [esi + 4]
setne cl
push eax
push ecx
push edx
call fcn.30162fe0
mov edi, eax
add esp, 0x34
test edi, edi
je 0x300b8908
mov ebx, dword [ebx + 0x2c]
mov ecx, dword [ebx + 0xdc]
call fcn.300f88b0
cmp eax, 9
setge cl
mov byte [esp + 0x54], cl
mov edx, dword [esp + 0x54]
mov ecx, dword [esp + 0x20]
push edx
mov edx, dword [esi + 4]
push edi
lea eax, [esp + 0x144]
push eax
push ecx
push edx
call fcn.30164bb0
mov al, byte [esp + 0x33]
add esp, 0x14
test al, al
je 0x300b8849
mov ecx, dword [edi + 0x10]
inc ecx
push edi
mov dword [edi + 0x10], ecx
mov ecx, dword [esp + 0x18]
lea eax, [esp + 0x78]
push eax
push ecx
mov ecx, esi
call fcn.300b4f60
mov edx, dword [esi + 4]
push eax
push edx
call fcn.301634c0
add esp, 0x14
test eax, eax
jne 0x300b8908
inc dword [0x30336638]
mov dword [esp + 0x14], edi
xor eax, eax
nop
mov edx, dword [esp + eax + 0x110]
mov ecx, dword [edi + 8]
mov dword [eax + ecx], edx
add eax, 4
cmp eax, 0x2c
jl 0x300b8850
mov ecx, dword [esp + 0x14]
jmp 0x300b8871
inc dword [0x30336634]
test ecx, ecx
je 0x300b8908
mov al, byte [esp + 0x1f]
test al, al
je 0x300b88d6
mov ecx, dword [ecx + 8]
lea edx, [esp + 0xe4]
xor eax, eax
sub ecx, edx
nop
lea edx, [ecx + eax*4]
mov edx, dword [esp + edx + 0xe4]
mov dword [esp + eax*4 + 0xe4], edx
inc eax
cmp eax, 0xb
jl 0x300b8890
mov eax, dword [esp + 0x38]
push eax
lea ecx, [esp + 0x60]
push ecx
lea edx, [esp + 0x30]
push edx
mov edx, dword [esi + 4]
lea eax, [esp + 0xf0]
push eax
lea ecx, [esp + 0xbc]
push ecx
push edx
call fcn.30164830
mov ecx, dword [esp + 0x2c]
add esp, 0x18
mov eax, dword [esp + 0x28]
mov word [ebp], ax
mov dx, word [ecx + 2]
add dx, ax
xor eax, eax
mov word [ebp + 2], dx
mov ax, word [ecx + 4]
add ax, word [esp + 0x2c]
neg eax
mov word [ebp + 4], ax
mov dx, word [ecx + 4]
add dx, ax
mov word [ebp + 6], dx
mov dword [ebp + 0xc], ecx
mov eax, dword [esp + 0x3c]
push eax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop ebx
pop edi
pop esi
pop ebp
add esp, 0x164
ret 8