Function at 0x421280
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 0x42129f
xor esi, esi
xor ebx, ebx
jmp 0x4212a8
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 0x4212db
cmp dword [eax + 0x10], 3
jne 0x4212db
mov ecx, dword [eax]
cmp ecx, 0x11
jbe 0x421370
mov ecx, 0x11
mov eax, 1
shl eax, cl
mov dword [esp + 0x10], eax
jmp 0x4212e1
xor ecx, ecx
mov dword [esp + 0x10], esi
cmp dword [esp + 0x24], 1
jne 0x42130a
mov eax, 0x6f98c4
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], 0x6f98c5
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 0x421364
cmp ecx, 1
jge 0x421340
mov dword [ebp + 0x10], eax
cmp ecx, 2
jge 0x42135d
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 0x42135d
mov dword [ebp + 0x10], ecx
mov dword [ebp + 0x20], 2
cmp esi, edx
jbe 0x421388
mov byte [ebp + 0x18], 1
xor eax, eax
jmp 0x42138b
cmp ecx, esi
je 0x4212dd
mov eax, 1
shl eax, cl
mov dword [esp + 0x10], eax
jmp 0x4212e1
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 0x4213ca
cmp eax, 1
jge 0x4213aa
mov ebx, dword [ebp + 8]
mov dword [ebp + 0x10], ebx
cmp eax, 2
jge 0x4213c3
mov ebx, edx
and ebx, 3
mov eax, edx
sub eax, ebx
mov dword [ebp + 0x14], eax
cmp eax, dword [ebp + 0x10]
jae 0x4213c3
mov dword [ebp + 0x10], eax
mov dword [ebp + 0x20], 2
cmp esi, edx
jbe 0x4213d6
mov byte [ebp + 0x18], 1
xor eax, eax
jmp 0x4213db
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 0x42141e
cmp eax, 1
jge 0x4213fe
mov ebx, dword [ebp + 8]
mov dword [ebp + 0x10], ebx
cmp eax, 2
jge 0x421417
mov ebx, edx
and ebx, 3
mov eax, edx
sub eax, ebx
mov dword [ebp + 0x14], eax
cmp eax, dword [ebp + 0x10]
jae 0x421417
mov dword [ebp + 0x10], eax
mov dword [ebp + 0x20], 2
cmp esi, edx
jbe 0x42142a
mov byte [ebp + 0x18], 1
xor ecx, ecx
jmp 0x42142d
mov dword [ebp + 0xc], esi
mov dword [edi + 0x24], ecx
cmp byte [ebp + 0x18], 0
je 0x421441
pop edi
pop esi
pop ebp
mov eax, 0xffffffc0
pop ebx
pop ecx
ret
mov esi, 1
cmp dword [esp + 0x20], esi
je 0x42146f
mov ecx, dword [ebp + 0x10]
mov eax, dword [ebp + 0xc]
cmp ecx, eax
jae 0x421464
sub eax, ecx
push eax
push 0
push ecx
call fcn.005f4bd0
add esp, 0xc
mov eax, dword [ebp + 0xc]
cmp dword [ebp + 0x10], eax
jae 0x42146f
mov dword [ebp + 0x10], eax
cmp dword [esp + 0x28], esi
jne 0x4214cf
mov eax, dword [esp + 0x1c]
cmp dword [eax + 0x18], 7
jl 0x4214cf
mov edx, 0x400
mov ecx, ebp
call fcn.0041e9e0
mov edx, 0x90
mov dword [edi + 0x30], eax
call fcn.0041e9e0
mov edx, 0xd4
mov dword [edi + 0x34], eax
call fcn.0041e9e0
mov edx, 0x80
mov dword [edi + 0x38], eax
call fcn.0041e9e0
mov edx, 0x8008
mov dword [edi + 0x3c], eax
call fcn.0041e9e0
mov edx, 0x1c01c
mov dword [edi + 0x40], eax
call fcn.0041e9e0
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