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

Disassembly:
push ecx
push ebx
push ebp
mov ebp, dword [esp + 0x10]
push esi
push edi
mov edi, eax
mov eax, dword [esp + 0x1c]
mov edx, 1
cmp dword [eax + 0x18], edx
jne 0x410b1f
xor esi, esi
xor ebx, ebx
jmp 0x410b28
mov ecx, dword [eax + 4]
mov ebx, edx
shl ebx, cl
xor esi, esi
mov ecx, dword [eax + 8]
shl edx, cl
cmp dword [esp + 0x28], 1
mov dword [esp + 0x18], ebx
jne 0x410b5b
cmp dword [eax + 0x10], 3
jne 0x410b5b
mov ecx, dword [eax]
cmp ecx, 0x11
jbe 0x410bf0
mov ecx, 0x11
mov eax, 1
shl eax, cl
mov dword [esp + 0x10], eax
jmp 0x410b61
xor ecx, ecx
mov dword [esp + 0x10], esi
cmp dword [esp + 0x24], 1
jne 0x410b8a
mov eax, 0x6da6ae
mov dword [edi + 4], eax
mov dword [edi + 8], eax
mov eax, 1
mov dword [edi + 0xc], eax
mov dword [edi + 0x10], eax
mov dword [edi], 0x6da6af
mov eax, dword [ebp + 8]
mov dword [ebp + 0x10], eax
mov eax, dword [edi]
sub eax, dword [edi + 4]
mov dword [edi + 0x14], esi
mov dword [edi + 0x4c], esi
mov dword [edi + 0x74], esi
mov dword [edi + 0x1c], ecx
mov dword [edi + 0x10], eax
mov dword [edi + 0xc], eax
mov dword [edi + 0x18], eax
mov eax, dword [ebp + 8]
mov ecx, dword [ebp + 0x20]
cmp ecx, 2
lea esi, [eax + edx*4]
mov edx, dword [ebp + 0x14]
mov dword [ebp + 0xc], eax
jge 0x410be4
cmp ecx, 1
jge 0x410bc0
mov dword [ebp + 0x10], eax
cmp ecx, 2
jge 0x410bdd
mov ebx, edx
and ebx, 3
mov ecx, edx
sub ecx, ebx
mov ebx, dword [esp + 0x18]
mov dword [ebp + 0x14], ecx
cmp ecx, dword [ebp + 0x10]
jae 0x410bdd
mov dword [ebp + 0x10], ecx
mov dword [ebp + 0x20], 2
cmp esi, edx
jbe 0x410c08
mov byte [ebp + 0x18], 1
xor eax, eax
jmp 0x410c0b
cmp ecx, esi
je 0x410b5d
mov eax, 1
shl eax, cl
mov dword [esp + 0x10], eax
jmp 0x410b61
mov dword [ebp + 0xc], esi
mov dword [edi + 0x20], eax
mov eax, dword [ebp + 0x20]
cmp eax, 2
mov ecx, dword [ebp + 0xc]
mov edx, dword [ebp + 0x14]
lea esi, [ecx + ebx*4]
jge 0x410c4a
cmp eax, 1
jge 0x410c2a
mov ebx, dword [ebp + 8]
mov dword [ebp + 0x10], ebx
cmp eax, 2
jge 0x410c43
mov ebx, edx
and ebx, 3
mov eax, edx
sub eax, ebx
mov dword [ebp + 0x14], eax
cmp eax, dword [ebp + 0x10]
jae 0x410c43
mov dword [ebp + 0x10], eax
mov dword [ebp + 0x20], 2
cmp esi, edx
jbe 0x410c56
mov byte [ebp + 0x18], 1
xor eax, eax
jmp 0x410c5b
mov dword [ebp + 0xc], esi
mov eax, ecx
mov edx, dword [esp + 0x10]
mov dword [edi + 0x28], eax
mov ecx, dword [ebp + 0xc]
mov eax, dword [ebp + 0x20]
cmp eax, 2
lea esi, [ecx + edx*4]
mov edx, dword [ebp + 0x14]
jge 0x410c9e
cmp eax, 1
jge 0x410c7e
mov ebx, dword [ebp + 8]
mov dword [ebp + 0x10], ebx
cmp eax, 2
jge 0x410c97
mov ebx, edx
and ebx, 3
mov eax, edx
sub eax, ebx
mov dword [ebp + 0x14], eax
cmp eax, dword [ebp + 0x10]
jae 0x410c97
mov dword [ebp + 0x10], eax
mov dword [ebp + 0x20], 2
cmp esi, edx
jbe 0x410caa
mov byte [ebp + 0x18], 1
xor ecx, ecx
jmp 0x410cad
mov dword [ebp + 0xc], esi
mov dword [edi + 0x24], ecx
cmp byte [ebp + 0x18], 0
je 0x410cc1
pop edi
pop esi
pop ebp
mov eax, 0xffffffc0
pop ebx
pop ecx
ret
mov esi, 1
cmp dword [esp + 0x20], esi
je 0x410cef
mov ecx, dword [ebp + 0x10]
mov eax, dword [ebp + 0xc]
cmp ecx, eax
jae 0x410ce4
sub eax, ecx
push eax
push 0
push ecx
call fcn.005e4750
add esp, 0xc
mov eax, dword [ebp + 0xc]
cmp dword [ebp + 0x10], eax
jae 0x410cef
mov dword [ebp + 0x10], eax
cmp dword [esp + 0x28], esi
jne 0x410d4f
mov eax, dword [esp + 0x1c]
cmp dword [eax + 0x18], 7
jl 0x410d4f
mov edx, 0x400
mov ecx, ebp
call fcn.0040e3c0
mov edx, 0x90
mov dword [edi + 0x30], eax
call fcn.0040e3c0
mov edx, 0xd4
mov dword [edi + 0x34], eax
call fcn.0040e3c0
mov edx, 0x80
mov dword [edi + 0x38], eax
call fcn.0040e3c0
mov edx, 0x8008
mov dword [edi + 0x3c], eax
call fcn.0040e3c0
mov edx, 0x1c01c
mov dword [edi + 0x40], eax
call fcn.0040e3c0
mov dword [edi + 0x44], eax
mov esi, dword [esp + 0x1c]
add edi, 0x78
mov ecx, 7
rep movsd dword es:[edi], dword [esi]
movzx eax, byte [ebp + 0x18]
pop edi
neg eax
pop esi
sbb eax, eax
pop ebp
and eax, 0xffffffc0
pop ebx
pop ecx
ret