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

Disassembly:
sub esp, 0x180
push ebx
mov ebx, dword [esp + 0x188]
mov dword [esp + 0x30], ecx
mov ecx, ebx
call fcn.300d1800
test eax, eax
jne 0x300c0dab
push edi
mov edi, dword [ebx + 0x18]
cmp dword [edi + 0x78], 2
mov dword [esp + 8], edi
jne 0x300c0daa
mov eax, dword [ebx + 0x54]
mov ecx, dword [esp + 0x190]
shr eax, 0xd
and eax, 7
cmp eax, ecx
mov dword [esp + 0x3c], eax
jne 0x300c09ea
mov al, byte [esp + 0x194]
test al, al
je 0x300c0daa
mov eax, dword [edi + 0x68]
mov cl, byte [eax + 0x642]
test cl, cl
push ebp
push esi
mov dword [esp + 0x48], eax
je 0x300c0ab3
mov ecx, ebx
call fcn.300d0470
mov esi, eax
test esi, esi
je 0x300c0da8
mov edi, dword [esi + 0x44]
mov eax, dword [edi + 0x54]
test ah, 0x10
je 0x300c0a24
mov ecx, edi
call fcn.300ddea0
mov eax, dword [esi + 0x10]
mov ecx, dword [eax + 0x18]
mov eax, dword [edi + 0x28]
test eax, eax
mov ebp, dword [ecx + 0x10]
jle 0x300c0a44
mov edi, eax
push 1
push 0
mov ecx, esi
call fcn.30166e80
dec edi
jne 0x300c0a36
mov eax, dword [esp + 0x198]
dec eax
cmp eax, 3
ja case.0x300c0a51.1
jmp dword [eax*4 + 0x300c0db8]
mov edi, dword [esi + 0x6c]
jmp 0x300c0a65
mov edi, dword [esi + 0x70]
jmp 0x300c0a65
mov edi, dword [esi + 0x68]
test edi, edi
je 0x300c0d8f
push edi
mov ecx, esi
call fcn.301a2210
mov edx, dword [ebp + 0x1b5c]
mov eax, dword [edx + 0x2c4]
test eax, eax
jne 0x300c0a91
push 0xb1
mov ecx, ebp
call fcn.3018a8f0
push eax
mov eax, edi
or eax, 1
push eax
mov ecx, ebp
call fcn.301c29a7
test al, al
je 0x300c0d8f
mov ecx, edi
call fcn.3016a7c0
jmp 0x300c0d8f
mov ebp, dword [edi + 8]
xor esi, esi
mov dword [esp + 0x40], ebp
mov dword [esp + 0x14], esi
mov ecx, dword [edi + 0x74]
mov edx, dword [edi + 0x70]
push ecx
push esi
mov ebx, SysReAllocString
push edx
lea ecx, [esp + 0x24]
mov dword [esp + 0x24], esi
mov dword [esp + 0x28], esi
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x30], esi
mov dword [esp + 0x34], esi
mov dword [esp + 0x38], esi
mov dword [esp + 0x3c], esi
mov dword [esp + 0x40], esi
mov byte [esp + 0x44], 0
call fcn.300dfc60
cmp byte [edi + 0x7e], 0x22
jne 0x300c0b07
add dword [esp + 0x1c], 2
cmp ebp, esi
mov dword [esp + 0x4c], esi
mov dword [esp + 0x50], esi
mov dword [esp + 0x54], ebx
mov dword [esp + 0x58], esi
mov dword [esp + 0x5c], esi
mov dword [esp + 0x60], esi
mov dword [esp + 0x64], esi
mov dword [esp + 0x68], esi
mov byte [esp + 0x6c], 0
je 0x300c0b3f
mov eax, dword [edi + 0xc]
push eax
push esi
push ebp
lea ecx, [esp + 0x58]
call fcn.300dfc60
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x18]
mov al, byte [ecx + edx]
inc ecx
mov bl, al
test bl, bl
mov dword [esp + 0x1c], ecx
je 0x300c0d76
lea esp, [esp]
lea ecx, [esp + 0x70]
call fcn.300453e0
mov eax, dword [esp + 0x1c]
mov esi, dword [esp + 0x18]
lea ecx, [eax + esi]
add eax, 2
mov dword [esp + 0x1c], eax
mov dword [esp + 0x14c], 0xe
xor edx, edx
mov dh, byte [ecx + 1]
mov dl, byte [ecx]
lea ecx, [eax + esi]
mov esi, dword [esp + 0x194]
add eax, 2
mov dword [esp + 0x1c], eax
xor eax, eax
mov ah, byte [ecx + 1]
mov ebp, edx
mov al, byte [ecx]
add eax, dword [esi + 0x1c]
lea ecx, [esp + 0x70]
push ecx
lea ecx, [esp + 0x1c]
mov dword [esp + 0x15c], eax
call fcn.300e1a80
cmp byte [edi + 0x7e], 0x22
jne 0x300c0bdc
push 1
lea edx, [esp + 0x90]
push edx
lea ecx, [esp + 0x20]
call fcn.300e1bd0
xor edi, edi
jmp 0x300c0c06
mov eax, dword [esp + 0x40]
xor edi, edi
cmp eax, edi
je 0x300c0bfa
push edi
lea eax, [esp + 0x90]
push eax
lea ecx, [esp + 0x54]
call fcn.300e1bd0
jmp 0x300c0c06
lea ecx, [esp + 0x8c]
call fcn.300ad070
test bl, 0x10
je 0x300c0c67
mov ecx, dword [esp + 0x10]
mov ecx, dword [ecx + 0x68]
mov eax, dword [ecx + 0x218]
cmp eax, edi
jne 0x300c0c21
call fcn.300e4110
cmp eax, 8
jl 0x300c0c67
mov ecx, dword [esp + 0x14c]
or ecx, 0x100
push 0xc
mov dword [esp + 0x150], ecx
call fcn.3007a1f0
add esp, 4
cmp eax, edi
je 0x300c0c52
mov dword [eax + 4], edi
mov dword [eax], edi
mov dword [eax + 8], edi
jmp 0x300c0c54
xor eax, eax
lea edx, [esp + 0x18]
push edx
mov ecx, eax
mov dword [esp + 0x184], eax
call fcn.30083dc0
test bl, 0x20
je 0x300c0ca0
mov eax, dword [esp + 0x10]
mov ecx, dword [eax + 0x68]
mov eax, dword [ecx + 0x218]
cmp eax, edi
jne 0x300c0c82
call fcn.300e4110
cmp eax, 8
jl 0x300c0ca0
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x18]
mov dl, byte [eax + ecx]
inc eax
mov byte [esp + 0x17d], dl
mov dword [esp + 0x1c], eax
jmp 0x300c0ca8
mov byte [esp + 0x17d], 1
mov eax, dword [esp + 0x198]
mov ecx, dword [esp + 0x44]
movzx eax, byte [eax + 0x3029af20]
movzx ecx, byte [ecx + 0x3029af20]
movzx edx, bl
and eax, edx
and ecx, edx
mov edx, dword [esp + 0x14]
cmp edx, edi
jne 0x300c0cec
cmp eax, edi
jne 0x300c0d1d
cmp ecx, edi
je 0x300c0d1d
mov edx, dword [esp + 0x158]
mov ecx, dword [esp + 0x3c]
push edx
push esi
call fcn.300c0180
jmp 0x300c0d1d
cmp edx, 1
jne 0x300c0d1d
cmp eax, edi
je 0x300c0d1d
cmp ecx, edi
jne 0x300c0d1d
mov ecx, dword [esp + 0x48]
push ebp
call fcn.300e0cd0
cmp eax, edi
mov dword [esp + 0x150], eax
je 0x300c0d1d
mov ecx, dword [esp + 0x3c]
lea eax, [esp + 0x70]
push eax
push esi
call fcn.300be840
mov eax, dword [esp + 0x14c]
test ah, 1
je 0x300c0d4b
mov ecx, dword [esp + 0x180]
cmp ecx, edi
mov esi, ecx
je 0x300c0d44
call fcn.30083d50
push esi
call fcn.30208320
add esp, 4
mov dword [esp + 0x180], edi
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x18]
mov dword [esp + 0x164], edi
mov al, byte [ecx + edx]
mov edi, dword [esp + 0x10]
inc ecx
mov bl, al
test bl, bl
mov dword [esp + 0x1c], ecx
jne 0x300c0b60
mov ebp, dword [esp + 0x40]
xor esi, esi
mov eax, dword [esp + 0x14]
inc eax
cmp eax, 2
mov dword [esp + 0x14], eax
jl 0x300c0ac0
mov ebx, dword [esp + 0x194]
movzx eax, byte [esp + 0x198]
mov ecx, dword [ebx + 0x54]
shl eax, 0xd
and ecx, 0xffff1fff
or eax, ecx
mov dword [ebx + 0x54], eax
pop esi
pop ebp
pop edi
pop ebx
add esp, 0x180
ret 0xc