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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x100566bb
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x88
cmp byte [ebp + 8], 0
push ebx
push esi
push edi
mov byte [esp + 0x1c], cl
je 0x10033696
cmp byte [ebp + 0x18], 0
je 0x1003365a
and dword [edx], 0
jmp 0x100338ab
mov esi, dword [ebp + 0x10]
xor ebx, ebx
mov dword [esi], 1
jmp 0x1003368d
push 0xd69
lea eax, [esp + 0x13]
mov byte [esp + 0x13], bl
push eax
push 0x1028
push 1
mov edx, 0x27d1
xor cl, cl
call fcn.1003206f
add esp, 0x10
dec dword [esi]
cmp dword [esi], ebx
jge 0x10033667
jmp 0x100338ab
test cl, cl
je 0x100338a6
xor ebx, ebx
mov dword [esp + 0x30], ebx
mov dword [esp + 0x34], ebx
mov dword [esp + 0x38], ebx
mov esi, dword [ebp + 0x1c]
mov dword [esp + 0x9c], ebx
cmp dword [esi + 0x10], ebx
je 0x1003388e
push 0x2e
pop eax
mov word [esp + 0x20], ax
lea ecx, [esp + 0x3c]
xor eax, eax
mov dword [esp + 0x50], 7
mov word [esp + 0x22], ax
mov word [esp + 0x3c], ax
lea eax, [esp + 0x20]
push eax
mov dword [esp + 0x50], ebx
call fcn.10024b71
lea eax, [esp + 0x3c]
mov byte [esp + 0x9c], 1
push eax
mov edx, esi
lea ecx, [esp + 0x28]
call fcn.1003032e
pop ecx
push ebx
push 1
lea ecx, [esp + 0x44]
mov byte [esp + 0xa4], 3
call fcn.1000f361
mov edi, dword [esp + 0x28]
mov eax, edi
mov esi, dword [esp + 0x24]
sub eax, esi
push 0x18
cdq
pop ecx
idiv ecx
mov dword [esp + 0x20], ebx
test eax, eax
jne 0x1003387a
push 0x2d
pop eax
push 2
pop edi
mov ecx, ebx
mov dword [esp + 0x10], 0x49019e00
mov word [esp + 0x14], ax
mov esi, edi
mov dword [esp + 0x18], ecx
cmp esi, edi
jne 0x10033761
mov ecx, edi
mov esi, edi
mov dword [esp + 0x18], ecx
jmp 0x1003379c
movzx edx, byte [esp + esi + 0x11]
mov eax, esi
sub eax, ecx
movzx eax, byte [esp + eax + 0xe]
movzx ecx, word [esp + eax*2 + 0x14]
mov eax, ecx
and eax, edx
add eax, eax
sub ecx, eax
movzx eax, byte [esp + esi + 0x10]
add ecx, edx
lea edx, [esp + 0x18]
push ecx
push 1
push ecx
mov word [esp + eax*2 + 0x20], cx
call fcn.10031759
mov ecx, dword [esp + 0x24]
add esp, 0xc
add esi, edi
cmp esi, 4
jb 0x10033753
xor eax, eax
mov dword [esp + 0x68], 7
mov word [esp + 0x16], ax
lea ecx, [esp + 0x54]
mov word [esp + 0x54], ax
lea eax, [esp + 0x14]
push eax
mov dword [esp + 0x68], ebx
call fcn.10024b71
mov edx, dword [ebp + 0x1c]
lea eax, [esp + 0x54]
push eax
lea ecx, [esp + 0x70]
mov byte [esp + 0xa0], 4
call fcn.1003032e
pop ecx
mov esi, eax
lea eax, [esp + 0x24]
cmp eax, esi
je 0x10033810
mov ecx, eax
call fcn.10034b73
mov ecx, dword [esi]
mov dword [esp + 0x24], ecx
mov eax, dword [esi + 4]
mov dword [esp + 0x28], eax
mov eax, dword [esi + 8]
mov dword [esp + 0x2c], eax
mov dword [esi], ebx
mov dword [esi + 4], ebx
mov dword [esi + 8], ebx
lea ecx, [esp + 0x6c]
call fcn.10034b73
push ebx
push 1
lea ecx, [esp + 0x5c]
mov byte [esp + 0xa4], 3
call fcn.1000f361
mov edi, dword [esp + 0x28]
mov esi, dword [esp + 0x24]
jmp 0x1003387a
push esi
lea ecx, [esp + 0x7c]
call fcn.1000e82a
push 1
lea eax, [esp + 0x7c]
mov byte [esp + 0xa0], 6
push eax
push ecx
push ecx
lea edx, [esp + 0x40]
mov ecx, 0x76ef
call fcn.10031942
add esp, 0x10
mov byte [esp + 0x9c], 3
lea ecx, [esp + 0x78]
push ebx
push 1
call fcn.1000f361
add esi, 0x18
cmp esi, edi
jne 0x10033837
lea ecx, [esp + 0x24]
mov byte [esp + 0x9c], bl
call fcn.10034b73
mov ecx, dword [ebp + 0xc]
lea eax, [esp + 0x30]
push eax
call fcn.1003494e
lea ecx, [esp + 0x30]
call fcn.10034c03
jmp 0x100338ab
mov eax, dword [ebp + 0x14]
dec dword [eax]
mov ecx, dword [esp + 0x94]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret