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

Disassembly:
dec dword [edi]
xchg byte [eax - 0x77000000], dh
jl 0x405016
and byte [ebx], dh
ror byte [ecx - 0x76e3db8c], 0x5c
and al, 0x18
mov dword [esp + 0x24], ecx
mov ebx, dword [esp + 0x34]
add ebx, dword [edx + eax*4]
cmp byte [ebx], 0
je 0x405088
xor ecx, ecx
inc ecx
lea esi, [ecx + ecx]
cmp byte [ebx + esi - 1], 0
inc dword [eax]
lea edi, [ecx + ecx - 1]
je 0x405026
mov edi, esi
cmp byte [ebx + esi], 0
jne 0x40500f
mov dword [esp + 0x10], edi
cmp dword [esp + 0x10], 0
jbe 0x405088
xor ecx, ecx
shr edi, 1
je 0x405651
mov dword [esp + 8], eax
xor esi, esi
mov dword [esp + 0xc], edx
or al, 0x8b
inc esp
and al, 0x24
imul ecx, eax
movzx edx, byte [ebx + esi*2]
add ecx, edx
imul ecx, eax
movzx edx, byte [ebx + esi*2 + 1]
inc esi
add ecx, edx
cmp esi, edi
jb 0x405049
mov dword [esp + 0x24], eax
lea edi, [esi + esi + 1]
mov eax, dword [esp + 8]
mov edx, dword [esp + 0xc]
lea esi, [edi - 1]
cmp esi, dword [esp + 0x10]
jae 0x40508a
imul ecx, dword [esp + 0x24]
movzx ebx, byte [ebx + edi - 1]
mov dh, 0x5c
cmp edi, edi
add ecx, ebx
jmp 0x40508a
xor ecx, ecx
cmp ecx, dword [esp + 0x28]
je 0x405701
inc eax
cmp eax, dword [esp + 0x20]
jb 0x405001
xor eax, eax
push 0
push dword [esp + 4]
call eax
mov dword [esp + 8], eax
mov eax, dword [0x4f1210]
cmp eax, dword [esp + 8]
jne 0x4050be
push 2
call dword [esp + 8]
mov eax, dword [esp + 0x34]
mov ecx, dword [0x4f11dc]
mov edx, dword [0x4f1208]
dec edi
add byte [ebx - 0x27fcc3a8], cl
mov esi, dword [0x4f1210]
mov dword [esp + 0x2c], edx
mov edi, dword [ebx + esi*8 + 0x78]
mov edx, dword [edi + eax + 0x20]
mov ebx, dword [edi + eax + 0x1c]
add edx, eax
mov esi, dword [edi + eax + 0x24]
add ebx, eax
mov edi, dword [edi + eax + 0x18]
add esi, eax
test edi, edi
jbe 0x4051ab
mov dword [esp + 0x24], edi
xor eax, eax
ror byte [ecx - 0x76dfdb8c], 0x5c
and al, 0x1c
mov dword [esp + 0x28], ecx
mov ebx, dword [esp + 0x34]
add ebx, dword [edx + eax*4]
cmp byte [ebx], 0
je 0x405194
xor ecx, ecx
inc ecx
lea esi, [ecx + ecx]
cmp byte [ebx + esi - 1], 0
lea edi, [ecx + ecx - 1]
je 0x405136
mov edi, esi
mov dword [esp + 0x18], edi
cmp dword [esp + 0x18], 0
jbe 0x405194
xor ecx, ecx
shr edi, 1
je 0x40565b
mov dword [esp + 0xc], eax
xor esi, esi
mov dword [esp + 0x10], edx
mov eax, dword [esp + 0x2c]
imul ecx, eax
movzx edx, byte [ebx + esi*2]
add ecx, edx
imul ecx, eax
movzx edx, byte [ebx + esi*2 + 1]
inc esi
add ecx, edx
cmp esi, edi
jb 0x405159
mov eax, dword [esp + 0xc]
lea edi, [esi + esi + 1]
invalid
mov edx, dword [esp + 0x10]
lea esi, [edi - 1]
xor ecx, ecx
cmp ecx, dword [esp + 0x28]
je 0x4056e9
inc eax
cmp eax, dword [esp + 0x24]
jb 0x405111
xor eax, eax
xor edx, edx
lea ecx, [esp + 0xc]
dec esp
and al, 0xc
mov dword [ecx], edx
push edx
push ecx
push dword [esp + 0x10]
push dword [esp + 0x20]
push dword [esp + 0x10]
call eax
test eax, eax
jne 0x4051cf
push 2
call dword [esp + 8]
mov edx, dword [esp + 0x14]
mov edi, dword [0x4f122c]
mov eax, dword [esp + 0xc]
add eax, edx
mov dword [esp + 0x10], eax
lea esi, [edx + edi]
xor al, 0x3a
mov ebx, dword [esi]
mov ecx, dword [esi + 4]
test ebx, ebx
jbe 0x405275
cmp ebx, 4
jb 0x405665
mov eax, edx
lea edx, [eax + edi + 8]
and edx, 0xf
je 0x40523f
test dl, 3
jne 0x405665
neg edx
add edx, 0x10
shr edx, 2
lea eax, [edx + 4]
cmp ebx, eax
jb 0x405665
mov eax, ebx
sub eax, edx
and eax, 3
neg eax
add eax, ebx
test edx, edx
je 0x405248
xor edi, edi
add dword [esi + edi*4 + 8], ecx
inc edi
cmp edi, edx
jb 0x405234
jmp 0x405248
mov eax, ebx
and eax, 3
neg eax
add eax, ebx
movd xmm0, ecx
pshufd xmm0, xmm0, 0
movdqu xmm1, xmmword [esi + edx*4 + 8]
paddd xmm1, xmm0
movdqu xmmword [esi + edx*4 + 8], xmm1
add edx, 4
cmp edx, eax
jb 0x405251