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

Disassembly:
sub esp, 0x4c
push ebp
mov ebp, dword [esp + 0x54]
cmp dword [ebp + 0x13c], 0
je 0x306db1
mov eax, dword [esp + 0x5c]
mov eax, dword [eax + 0x10]
sar eax, 8
mov dword [esp + 8], eax
jmp 0x306dbd
mov dword [esp + 8], 0
mov eax, dword [esp + 8]
mov ecx, dword [ebp]
mov edx, dword [ecx + 8]
mov ecx, dword [esp + 0x5c]
push ebx
push esi
mov esi, dword [esp + 0x60]
push edi
push 0
push ecx
push eax
push esi
mov dword [esp + 0x30], edx
push ebp
lea edx, [esp + 0x48]
mov eax, 1
call fcn.00302c50
mov edx, dword [ebp]
mov eax, dword [edx + 0x28]
lea ebx, [esp + 0x34]
call fcn.002be4b0
mov edi, eax
mov eax, dword [ebp]
mov ecx, dword [eax + 0x4c]
xor ebx, ebx
cmp ecx, ebx
je 0x306e0f
cmp dword [ecx + 0xc], edi
je 0x306e0f
mov ecx, dword [ecx + 0x18]
cmp ecx, ebx
jne 0x306e03
cmp ecx, ebx
mov dword [esp + 0x10], ecx
jne 0x306e3b
call fcn.003306a0
mov ecx, dword [esp + 0x70]
mov edx, dword [ecx]
mov dword [eax + 0x1c], edx
mov dword [eax + 0xc], edi
mov ecx, dword [ebp]
mov edx, dword [ecx + 0x4c]
mov dword [eax + 0x18], edx
mov ecx, dword [ebp]
mov dword [esp + 0x10], eax
mov dword [ecx + 0x4c], eax
mov esi, dword [esi + 0x3c]
and esi, 0x3c00
mov ecx, dword [esp + 0x14]
je 0x306e8a
mov edx, dword [esp + 0x68]
mov eax, dword [edx + 0x18]
mov edx, dword [esp + 0x64]
mov edx, dword [edx + 0x20]
add eax, ecx
movzx eax, byte [edx + eax*4]
mov dword [esp + 0x18], eax
sub eax, 1
je 0x306e80
sub eax, 1
je 0x306e76
mov dword [esp + 0x60], 4
jmp 0x306e97
mov dword [esp + 0x60], 3
jmp 0x306e97
mov dword [esp + 0x60], 2
jmp 0x306e97
mov eax, 4
mov dword [esp + 0x18], eax
mov dword [esp + 0x60], eax
mov eax, dword [esp + 0x10]
cmp dword [eax + 0x10], ebx
jne 0x306f5b
cmp dword [ebp + 0xe0], 1
jne 0x306eca
lea edx, [esp + 0x14]
push edx
lea eax, [esp + 0x20]
push eax
push 1
mov eax, ebp
call fcn.003023d0
mov ecx, dword [esp + 0x14]
mov eax, dword [esp + 0x1c]
jmp 0x306ecf
mov eax, 0xc0
mov ebx, dword [esp + 0x18]
neg esi
sbb esi, esi
and esi, ecx
mov ecx, dword [esp + 0x70]
mov edx, dword [ecx]
push esi
push edi
push eax
push 0x28
push edx
push edi
mov eax, ebp
call fcn.00303b10
mov ecx, dword [esp + 0x70]
mov edx, dword [ecx]
mov ebx, eax
mov eax, dword [esp + 0x18]
push 0x28
push eax
push edx
mov eax, edi
mov ecx, ebp
call fcn.00303cf0
mov esi, eax
mov eax, dword [esp + 0x64]
test byte [eax + 0x3d], 0x3c
je 0x306f1a
mov eax, dword [eax + 0x18]
mov dword [esi + 0x40], eax
jmp 0x306f21
mov dword [esi + 0x40], 0xf
mov edi, dword [esp + 0x20]
mov dword [esi + 0x3c], 1
mov ecx, dword [edi + 4]
push 4
push ecx
call dword [edi]
mov dword [eax], ebx
mov dword [esi + 0x38], eax
mov edx, dword [edi + 4]
push 8
push edx
call dword [edi]
mov dword [eax + 4], esi
mov ecx, dword [ebp]
mov edx, dword [ecx + 0x44]
mov dword [eax], edx
mov ecx, dword [ebp]
mov edx, dword [esp + 0x10]
mov dword [ecx + 0x44], eax
mov dword [edx + 0x10], esi
xor ebx, ebx
mov eax, dword [ebp + 0x38]
mov ecx, dword [esp + 0x70]
mov dword [esp + 0x54], eax
mov eax, dword [ecx]
mov dword [esp + 0x50], eax
mov dword [esp + 0x24], eax
mov eax, dword [ebp]
lea edi, [esp + 0x24]
lea esi, [esp + 0x44]
mov dword [esp + 0x44], 0x26
mov dword [esp + 0x4c], ebx
mov dword [esp + 0x48], ebx
mov dword [esp + 0x58], ebx
mov dword [esp + 0x28], 0xffffffff
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x30], ebx
call fcn.003307f0
mov edx, dword [esp + 0x10]
mov ecx, dword [esp + 0x68]
push ecx
mov dword [eax + 0x6c], edx
mov edx, dword [esp + 0x64]
push edx
mov edx, dword [ecx + 0x18]
shl edx, 4
push edx
add ecx, 0x14
push ecx
push eax
mov eax, dword [esp + 0x78]
push eax
push ebp
call fcn.003054c0
mov ecx, dword [ebp + 0x38]
mov dword [esp + 0x54], ecx
mov ecx, dword [esp + 0x70]
mov edx, dword [ecx + 4]
mov dword [esp + 0x68], eax
mov eax, dword [ecx]
mov dword [esp + 0x50], eax
mov dword [esp + 0x24], eax
mov eax, dword [ebp]
mov dword [esp + 0x44], 0x2c
mov dword [esp + 0x4c], ebx
mov dword [esp + 0x48], ebx
mov dword [esp + 0x58], 1
mov dword [esp + 0x28], edx
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x30], ebx
call fcn.00330980
mov esi, eax
mov eax, dword [ebp + 4]
add dword [eax + 0x2c], 1
cmp byte [esi + 0x69], bl
mov eax, dword [eax + 0x2c]
mov dword [esi + 0x58], eax
mov edx, 0x3020100
jle 0x30704e
mov eax, dword [esp + 0x68]
mov dword [esi + 0x80], edx
mov dword [esi + 0x84], 0xffffffff
mov dword [esi + 0x74], ebx
mov dword [esi + 0x70], 2
mov dword [esi + 0x7c], eax
cmp byte [esi + 0x69], 1
mov edi, dword [esp + 0x70]
mov eax, dword [edi + 4]
mov ecx, dword [edi]
jle 0x30707f
mov dword [esi + 0x8c], ecx
mov ecx, dword [esp + 0x6c]
mov dword [esi + 0x9c], edx
mov dword [esi + 0xa0], eax
mov dword [esi + 0x90], ebx
mov dword [esi + 0x98], ecx
mov eax, dword [ebp]
call fcn.00330650
mov edx, dword [esp + 0x10]
mov dword [eax + 0x14], esi
mov dword [eax + 8], edx
mov ecx, dword [edi + 4]
pop edi
mov dword [eax + 0x28], ecx
mov ecx, dword [ebp + 0xc]
pop esi
cmp ecx, ebx
pop ebx
je 0x3070ad
mov dword [ecx], eax
mov dword [ebp + 0xc], eax
pop ebp
add esp, 0x4c
ret 0x14
mov edx, dword [ebp + 4]
mov dword [edx + 0x38], eax
mov dword [ebp + 0xc], eax
pop ebp
add esp, 0x4c
ret 0x14