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

Disassembly:
sub esp, 0x44
mov eax, dword [0x490004]
xor eax, esp
mov dword [esp + 0x3c], eax
and dword [esp + 0x1c], 0
and dl, 2
push ebx
push ebp
push esi
mov esi, ecx
mov byte [esp + 0xf], dl
push edi
cmp byte [esi], 3
mov eax, dword [esi + 8]
mov dword [esp + 0x1c], eax
mov edi, dword [eax + 4]
mov dword [esp + 0x18], edi
jne 0x418f87
call fcn.00412315
mov edi, eax
test edi, edi
jne 0x419265
mov edi, dword [esp + 0x18]
mov ebx, dword [esi + 0x74]
movsx eax, byte [esi + 0x44]
movzx ecx, word [esi + 0x46]
mov dword [esp + 0x28], eax
mov eax, dword [ebx + 0x40]
mov dword [esp + 0x20], ecx
movzx ebp, byte [eax + ecx*2 + 1]
movzx eax, byte [eax + ecx*2]
shl eax, 8
or ebp, eax
movzx eax, word [ebx + 0x1a]
and ebp, eax
add ebp, dword [ebx + 0x38]
cmp dword [ebx + 0x14], 0
jge 0x418fcd
mov ecx, ebx
call fcn.00413125
test eax, eax
je 0x418fcd
push 0xb
pop eax
jmp 0x419267
cmp byte [esp + 0x13], 0
je 0x41901e
cmp byte [ebx + 8], 0
je 0x41900d
push ebp
push ebx
call fcn.0041274f
pop ecx
pop ecx
movzx ecx, ax
xor edx, edx
mov eax, dword [ebx + 0x14]
add eax, 2
add ecx, eax
mov eax, dword [edi + 0x24]
push 3
add eax, eax
pop edi
div edi
cmp ecx, eax
jg 0x41900d
xor eax, eax
inc eax
cmp word [ebx + 0x18], ax
je 0x41900d
mov dword [esp + 0x2c], eax
jmp 0x41901e
mov ecx, esi
call fcn.0041215e
mov edi, eax
test edi, edi
jne 0x419265
cmp byte [ebx + 8], 0
jne 0x419038
push 0
push esi
call fcn.00415922
mov edi, eax
pop ecx
pop ecx
test edi, edi
jne 0x419265
test byte [esi + 1], 0x20
je 0x419056
mov edx, dword [esi + 0x40]
mov ecx, dword [esp + 0x18]
push esi
call fcn.0041220f
mov edi, eax
pop ecx
test edi, edi
jne 0x419265
cmp dword [esi + 0x70], 0
jne 0x419073
mov edx, dword [esi + 0x40]
mov ecx, dword [esp + 0x1c]
push 0
push dword [esi + 0x24]
push dword [esi + 0x20]
call fcn.00412087
add esp, 0xc
mov ecx, dword [ebx + 0x48]
call fcn.0040f1bb
mov edi, eax
test edi, edi
jne 0x419265
lea eax, [esp + 0x30]
mov edx, ebp
push eax
mov ecx, ebx
call fcn.0041625d
mov edx, dword [esp + 0x24]
mov dword [esp + 0x18], eax
lea eax, [esp + 0x18]
pop ecx
push eax
movzx eax, word [esp + 0x46]
mov ecx, ebx
push eax
call fcn.0041661d
mov edi, dword [esp + 0x1c]
pop ecx
pop ecx
test edi, edi
jne 0x419265
cmp byte [ebx + 8], 0
jne 0x4191ac
mov ebp, dword [esi + 0x74]
cmp dword [ebp + 0x14], edi
jge 0x4190df
mov ecx, ebp
call fcn.00413125
mov edi, eax
test edi, edi
jne 0x419265
movsx eax, byte [esi + 0x44]
mov ecx, dword [esp + 0x28]
dec eax
cmp ecx, eax
jge 0x4190f5
lfence
mov eax, dword [esi + ecx*4 + 0x7c]
jmp 0x4190f8
mov eax, dword [esi + 0x74]
mov eax, dword [eax + 4]
movzx ecx, word [ebp + 0x18]
mov edx, dword [ebp + 0x38]
mov dword [esp + 0x24], eax
mov eax, dword [ebp + 0x40]
movzx edi, byte [eax + ecx*2 - 2]
movzx eax, byte [eax + ecx*2 - 1]
shl edi, 8
or edi, eax
movzx eax, word [ebp + 0x1a]
and edi, eax
lea eax, [edx + 4]
add edi, edx
cmp edi, eax
jae 0x419136
mov ecx, 0x11a95
call fcn.0045f8ea
jmp 0x419267
push edi
push ebp
lfence
call dword [ebp + 0x4c]
movzx eax, ax
mov dword [esp + 0x24], eax
mov eax, dword [esp + 0x20]
pop ecx
pop ecx
mov ecx, dword [ebp + 0x48]
mov eax, dword [eax + 0x40]
mov dword [esp + 0x18], eax
call fcn.0040f1bb
mov dword [esp + 0x14], eax
test eax, eax
jne 0x419189
mov edx, dword [esp + 0x20]
lea eax, [esp + 0x14]
push eax
push dword [esp + 0x28]
mov eax, dword [esp + 0x24]
mov ecx, ebx
push dword [esp + 0x20]
add eax, 4
push eax
lea eax, [edi - 4]
push eax
call fcn.004166fd
add esp, 0x14
movzx edx, word [ebp + 0x18]
lea eax, [esp + 0x14]
push eax
push dword [esp + 0x20]
dec edx
mov ecx, ebp
call fcn.0041661d
mov edi, dword [esp + 0x1c]
pop ecx
pop ecx
test edi, edi
jne 0x419265
mov ecx, esi
call fcn.0041878e
mov edi, eax
test edi, edi
jne 0x419265
movsx eax, byte [esi + 0x44]
mov ebp, dword [esp + 0x28]
cmp eax, ebp
jle 0x419214
mov ecx, dword [esi + 0x74]
mov ecx, dword [ecx + 0x48]
call fcn.0040ed41
mov dl, byte [esi + 0x44]
dec dl
mov byte [esi + 0x44], dl
jmp 0x4191f6
mov ecx, dword [esi + eax*4 + 0x78]
dec dl
mov byte [esi + 0x44], dl
test ecx, ecx
je 0x4191f6
mov ecx, dword [ecx + 0x48]
call fcn.0040ed41
mov dl, byte [esi + 0x44]
movsx eax, dl
cmp eax, ebp
movsx eax, dl
jg 0x4191de
mov eax, dword [esi + eax*4 + 0x78]
mov ecx, esi
mov dword [esi + 0x74], eax
call fcn.0041878e
mov edi, eax
test edi, edi
jne 0x419265
cmp dword [esp + 0x2c], 0
je 0x419241
mov byte [esi], 2
movzx eax, word [ebx + 0x18]
cmp dword [esp + 0x20], eax
jb 0x419238
or dword [esi + 4], 0xffffffff
mov ax, word [ebx + 0x18]
dec ax
mov word [esi + 0x46], ax
jmp 0x419265
mov dword [esi + 4], 1
jmp 0x419265
mov ecx, esi
call fcn.004150e9
cmp byte [esp + 0x13], 0
mov edi, eax
je 0x41925d
mov ecx, esi
call fcn.00412120
push 3
pop eax
mov byte [esi], al
xor eax, eax
cmp edi, 0x10
cmove edi, eax
mov eax, edi
mov ecx, dword [esp + 0x4c]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.004614f6
add esp, 0x44
ret