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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xa08
mov eax, dword [0x3001d1b0]
xor eax, esp
mov dword [esp + 0xa04], eax
mov eax, dword [ebp + 8]
mov eax, dword [eax]
or dword [esp + 4], 0xffffffff
mov dword [esp + 0x18], ecx
mov ecx, dword [ebp + 0xc]
mov dword [esp + 0x38], ecx
movzx ecx, word [eax]
push ebx
add eax, 2
push esi
xor esi, esi
mov dword [esp + 0x38], ecx
lea edx, [esp + 0x908]
mov dword [esp + 0x30], eax
xor ecx, ecx
mov ebx, 0x800a03ec
mov dword [esp + 0x24], esi
mov dword [esp + 0x44], esi
mov dword [esp + 0x3c], esi
mov dword [esp + 0x34], esi
mov dword [esp + 0x2c], esi
xor eax, eax
mov dword [esp + 0x14], edx
mov dword [esp + 0x18], esi
mov dword [esp + 0x1c], esi
jmp 0x30038bf7
xor esi, esi
cmp dword [esp + 0x18], esi
jl 0x30038e6f
add ecx, eax
cmp dword [esp + 0x1c], 3
mov dword [esp + 0x10], ecx
mov dword [esp + 0x28], 4
je 0x30038c1a
mov dword [esp + 0x28], esi
push dword [esp + 0x40]
or eax, 0xffffffff
push dword [esp + 0x24]
mov dword [esp + 0x5c], eax
lea ecx, [esp + 0x7ba]
mov dword [esp + 0x60], ecx
mov ecx, dword [esp + 0x1c]
mov dword [esp + 0x78], eax
mov dword [esp + 0x84], eax
mov dword [esp + 0x8c8], eax
mov eax, dword [esp + 0x40]
mov dword [esp + 0x64], ecx
mov dword [esp + 0x20], eax
lea eax, [esp + 0x20]
lea ecx, [esp + 0xa0f]
push eax
push dword [esp + 0x3c]
mov dword [esp + 0x70], ecx
mov dword [esp + 0x60], esi
mov dword [esp + 0x74], esi
mov dword [esp + 0x78], esi
mov dword [esp + 0x7c], esi
mov dword [esp + 0x84], esi
mov dword [esp + 0x88], esi
mov dword [esp + 0xc4], esi
lea ecx, [esp + 0x8c8]
lea esi, [esp + 0x60]
mov dword [esp + 0x8c4], ecx
call fcn.3003b4c3
mov ebx, eax
test ebx, ebx
jl 0x30038f57
push dword [esp + 0x20]
mov ebx, dword [esp + 0x44]
push edi
call fcn.30039f42
mov ebx, eax
test ebx, ebx
jl 0x30038f57
push dword [esp + 0x20]
lea eax, [esp + 0x2c]
push eax
push edi
call fcn.30039a5c
mov ebx, eax
test ebx, ebx
jl 0x30038f57
push dword [esp + 0x20]
mov eax, esi
push edi
call fcn.30038f6f
mov ebx, eax
test ebx, ebx
mov dword [esp + 0x4c], ebx
jl 0x30038f57
mov eax, dword [esp + 0xb4]
mov ecx, eax
shr eax, 0x14
and eax, 1
or dword [esp + 0x2c], eax
mov eax, dword [esp + 0x64]
shr ecx, 0x13
and ecx, 1
or dword [esp + 0x34], ecx
test eax, eax
je 0x30038d2b
sub eax, dword [esp + 0x14]
inc eax
mov dword [esp + 0xc], eax
jmp 0x30038d30
or dword [esp + 0xc], 0xffffffff
mov eax, dword [esp + 0x5c]
sub eax, dword [esp + 0x14]
js 0x30038e7d
mov ecx, dword [esp + 0x18]
add dword [esp + 0x14], eax
test ecx, ecx
jle 0x30038d59
mov edx, dword [esp + 0x30]
sub dword [esp + 0x38], ecx
lea ecx, [edx + ecx*2]
mov dword [esp + 0x30], ecx
mov esi, dword [esp + 0x1c]
mov edx, dword [esp + 0x28]
xor ecx, ecx
test esi, esi
sete cl
mov dword [esp + 0x48], ecx
or ecx, 4
test edx, ecx
je 0x30038dc0
cmp esi, 3
jne 0x30038d90
cmp eax, 1
jne 0x30038d90
mov ecx, dword [esp + 0x10]
cmp byte [esp + ecx + 0x908], al
jne 0x30038d94
mov dword [esp + 0x3c], eax
jmp 0x30038d99
mov ecx, dword [esp + 0x10]
and dword [esp + 0x3c], 0
test dl, 4
mov dword [esp + 0x24], 1
mov byte [edi + 0x23], al
mov byte [edi + 0x1f], cl
je 0x30038dc4
cmp dword [esp + 0xc], 0xffffffff
mov ecx, dword [esp + 0x10]
je 0x30038e6d
jmp 0x30038e68
mov ecx, dword [esp + 0x10]
cmp dword [esp + 0xc], 0xffffffff
je 0x30038dcf
add dword [esp + 0xc], ecx
mov byte [edi + esi + 0x20], al
mov byte [edi + esi + 0x1c], cl
mov edx, dword [edi + 0x28]
xor edx, dword [esp + 0x48]
mov dword [esp + 0x44], 1
and edx, 1
xor dword [edi + 0x28], edx
mov edx, dword [edi + 0x28]
test dl, 1
je 0x30038e1f
mov byte [edi + 0x1d], cl
mov byte [edi + 0x1e], cl
mov ecx, dword [esp + 0x2c]
shl ecx, 5
xor ecx, edx
and ecx, 0x20
xor ecx, edx
mov dword [edi + 0x28], ecx
mov ecx, dword [esp + 0xc]
cmp ecx, 0xffffffff
mov byte [edi + 0x21], al
mov byte [edi + 0x22], al
je 0x30038e4c
mov byte [edi + 0x2c], cl
jmp 0x30038e4c
cmp esi, 1
jne 0x30038e45
mov ecx, dword [esp + 0x34]
shl ecx, 4
xor ecx, edx
and ecx, 0x10
xor ecx, edx
cmp dword [esp + 0xc], 0xffffffff
mov dword [edi + 0x28], ecx
je 0x30038e4c
mov cl, byte [esp + 0xc]
mov byte [edi + 0x2d], cl
jmp 0x30038e4c
cmp dword [esp + 0xc], 0xffffffff
jne 0x30038e64
mov ecx, dword [esp + 0x10]
mov ebx, dword [esp + 0x4c]
inc esi
cmp esi, 4
mov dword [esp + 0x1c], esi
jl 0x30038bf5
jmp 0x30038e6d
mov ecx, dword [esp + 0x10]
mov ebx, 0x800a03ec
xor esi, esi
cmp ebx, esi
jl 0x30038f57
cmp dword [esp + 0x18], esi
jle 0x30038e87
mov ebx, 0x800a03ec
jmp 0x30038f57
cmp dword [esp + 0x44], esi
je 0x30038e97
cmp dword [esp + 0x24], esi
jne 0x30038f42
mov edx, dword [esp + 0x14]
mov byte [edx], 1
xor esi, esi
inc edx
add ecx, eax
cmp dword [esp + 0x24], esi
je 0x30038ec0
mov byte [edi + 0x22], 1
mov byte [edi + 0x21], 1
mov byte [edi + 0x20], 1
mov byte [edi + 0x1e], cl
mov byte [edi + 0x1d], cl
mov byte [edi + 0x1c], cl
jmp 0x30038eed
cmp eax, esi
jle 0x30038ee6
mov eax, dword [esp + 0x1c]
cmp eax, 2
je 0x30038ee6
cmp dword [esp + 0xc], 0xffffffff
je 0x30038ee6
add eax, edi
mov byte [eax + 0x1c], cl
mov byte [eax + 0x20], 1
and dword [edi + 0x28], 0xfffffffe
mov byte [edx], 1
inc edx
inc ecx
mov byte [edi + 0x23], 1
mov byte [edi + 0x1f], cl
cmp dword [esp + 0x24], esi
jne 0x30038f46
xor eax, eax
shl eax, 3
xor eax, dword [edi + 0x28]
lea ecx, [esp + 0x908]
and eax, 8
xor dword [edi + 0x28], eax
mov eax, edx
sub eax, ecx
cmp eax, esi
mov dword [edi + 0x24], eax
jle 0x30038f51
mov ecx, dword [edi + 4]
mov ebx, dword [ecx]
cdq
lea esi, [edi + 0x18]
push esi
push edx
push eax
call dword [ebx]
mov ebx, eax
test ebx, ebx
jl 0x30038f57
push dword [edi + 0x24]
or dword [edi + 0x28], 0x40000
push dword [esi]
lea eax, [esp + 0x910]
push eax
call fcn.3002660a
jmp 0x30038f57
mov edx, dword [esp + 0x14]
cmp dword [esp + 0x3c], esi
jne 0x30038ef3
xor eax, eax
inc eax
jmp 0x30038ef5
mov dword [edi + 0x18], esi
mov dword [edi + 0x24], esi
mov ecx, dword [esp + 0xa0c]
pop esi
mov eax, ebx
pop ebx
xor ecx, esp
call fcn.3020156b
mov esp, ebp
pop ebp
ret 8