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

Disassembly:
push 0xffffffffffffffff
push 0x496b06
mov eax, dword fs:[0]
push eax
sub esp, 0x5c
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4c87c0]
xor eax, esp
push eax
lea eax, [esp + 0x70]
mov dword fs:[0], eax
mov dword [esp + 0x38], ecx
mov eax, dword [esp + 0x80]
mov edx, dword [esp + 0x84]
xor ebx, ebx
mov ecx, eax
and ecx, 3
lea esi, [eax + 4]
cmp esi, edx
mov dword [esp + 0x14], ebx
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x28], ebx
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x30], ecx
jbe 0x414118
mov dword [esp + 0x14], 0xffffffff
jmp 0x414400
mov eax, dword [eax]
mov edi, eax
add edi, edi
add edi, edi
lea ebp, [edi + esi]
cmp ebp, edx
mov dword [esp + 0x18], eax
jbe 0x414138
mov dword [esp + 0x14], 0xffffffff
jmp 0x414400
test ecx, ecx
jne 0x414142
mov dword [esp + 0x1c], esi
jmp 0x414169
xor ecx, ecx
mov eax, edi
mov edx, 4
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.004217e2
push edi
push esi
push eax
mov dword [esp + 0x2c], eax
call fcn.004667e0
add esp, 0x10
mov eax, dword [esp + 0x1c]
mov esi, dword [edi + eax - 4]
add esi, esi
add esi, esi
lea edi, [esi + ebp]
cmp edi, dword [esp + 0x84]
jbe 0x41418e
mov dword [esp + 0x14], 0xffffffff
jmp 0x414400
cmp dword [esp + 0x30], ebx
jne 0x41419a
mov dword [esp + 0x28], ebp
jmp 0x4141c1
xor ecx, ecx
mov eax, esi
mov edx, 4
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.004217e2
push esi
push ebp
push eax
mov dword [esp + 0x38], eax
call fcn.004667e0
add esp, 0x10
mov esi, dword [esp + 0x18]
add esi, esi
lea ebp, [esi + edi]
cmp ebp, dword [esp + 0x84]
jbe 0x4141e0
mov dword [esp + 0x14], 0xffffffff
jmp 0x414400
cmp dword [esp + 0x30], ebx
jne 0x4141ec
mov dword [esp + 0x2c], edi
jmp 0x414213
xor ecx, ecx
mov eax, esi
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.004217e2
push esi
push edi
push eax
mov dword [esp + 0x3c], eax
call fcn.004667e0
add esp, 0x10
cmp dword [esp + 0x18], ebx
mov dword [esp + 0x3c], ebx
jbe 0x414400
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x2c]
mov dword [esp + 0x24], eax
mov dword [esp + 0x20], ecx
mov edx, dword [esp + 0x20]
movzx eax, word [edx]
mov ecx, dword [esp + 0x38]
mov edx, dword [ecx + eax*4]
mov eax, dword [esp + 0x24]
cmp ebx, dword [eax]
mov byte [esp + 0x80], 1
mov dword [esp + 0x48], edx
jae 0x4143cb
mov edi, dword [esp + 0x28]
mov eax, dword [edi + ebx*4]
lea esi, [eax + ebp]
add ebx, 1
cmp esi, dword [esp + 0x84]
ja 0x41410b
mov ecx, dword [esp + 0x88]
push ecx
push eax
push ebp
lea ecx, [esp + 0x68]
call fcn.0041c440
mov edi, dword [edi + ebx*4]
lea ebp, [edi + esi]
add ebx, 1
cmp ebp, dword [esp + 0x84]
mov dword [esp + 0x78], 0
mov dword [esp + 0x40], ebp
ja 0x4143ec
mov al, byte [esp + 0x8c]
test al, al
je 0x41434f
movsx edx, al
lea eax, [esp + 0x34]
push eax
push edi
push esi
mov dword [esp + 0x40], edx
call fcn.0041ff70
xor ecx, ecx
mov ebp, eax
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.004217e2
mov dword [esp + 0x60], eax
mov dword [esp + 0x64], ebp
mov dword [esp + 0x68], 0
lea eax, [esp + 0x44]
push eax
lea ecx, [esp + 0x64]
push ecx
push edi
push esi
mov byte [esp + 0x98], 1
call fcn.00420130
push 0x18
call fcn.004217b2
add esp, 0x24
mov dword [esp + 0x4c], eax
test eax, eax
mov byte [esp + 0x78], 2
je 0x414338
mov ecx, dword [esp + 0x50]
lea edx, [ebp + ebp]
push edx
push ecx
lea edx, [esp + 0x64]
push edx
mov ecx, eax
call fcn.00412a80
jmp 0x41433a
xor eax, eax
mov esi, eax
mov eax, dword [esp + 0x50]
push eax
call fcn.004217e7
mov ebp, dword [esp + 0x44]
add esp, 4
jmp 0x41437a
push 0x18
call fcn.004217b2
add esp, 4
mov dword [esp + 0x4c], eax
test eax, eax
mov byte [esp + 0x78], 3
je 0x414376
push edi
push esi
lea ecx, [esp + 0x64]
push ecx
mov ecx, eax
call fcn.00412a80
jmp 0x414378
xor eax, eax
mov esi, eax
cmp byte [esp + 0x80], 0
jne 0x41438d
mov edx, dword [esp + 0x44]
mov dword [edx + 4], esi
jmp 0x4143a3
mov eax, dword [esp + 0x20]
movzx ecx, word [eax]
mov edx, dword [esp + 0x38]
mov dword [edx + ecx*4], esi
mov byte [esp + 0x80], 0
lea ecx, [esp + 0x5c]
mov dword [esp + 0x44], esi
mov dword [esp + 0x78], 0xffffffff
call fcn.0041c530
mov eax, dword [esp + 0x24]
cmp ebx, dword [eax]
jb 0x414257
mov ecx, dword [esp + 0x48]
mov dword [esi + 4], ecx
mov eax, dword [esp + 0x3c]
add dword [esp + 0x20], 2
add dword [esp + 0x24], 4
add eax, 1
cmp eax, dword [esp + 0x18]
mov dword [esp + 0x3c], eax
jb 0x414231
jmp 0x414400
or eax, 0xffffffff
lea ecx, [esp + 0x5c]
mov dword [esp + 0x14], eax
mov dword [esp + 0x78], eax
call fcn.0041c530
cmp dword [esp + 0x30], 0
je 0x414428
mov edx, dword [esp + 0x1c]
push edx
call fcn.004217e7
mov eax, dword [esp + 0x2c]
push eax
call fcn.004217e7
mov ecx, dword [esp + 0x34]
push ecx
call fcn.004217e7
add esp, 0xc
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x70]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x68
ret 0x10