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

Disassembly:
sub esp, 0x108
push ebx
push ebp
push esi
xor esi, esi
mov ebx, edx
push edi
mov dword [esp + 0x10], ebx
mov edx, ecx
mov dword [esp + 0x58], esi
mov edi, ebx
mov dword [esp + 0x5c], esi
mov dword [esp + 0x60], esi
mov dword [esp + 0x64], esi
mov dword [esp + 0x68], esi
mov dword [esp + 0x6c], esi
mov dword [esp + 0x70], esi
mov dword [esp + 0x74], esi
mov dword [esp + 0x78], esi
mov dword [esp + 0x7c], esi
mov dword [esp + 0x80], esi
mov dword [esp + 0x84], esi
mov dword [esp + 0x88], esi
mov dword [esp + 0x8c], esi
mov dword [esp + 0x90], esi
mov dword [esp + 0x94], esi
mov eax, dword [ecx]
lea ecx, [ecx + 4]
inc dword [esp + eax*4 + 0x58]
sub edi, 1
jne 0x41f9dd
cmp dword [esp + 0x58], ebx
jne 0x41fa0a
mov eax, dword [esp + 0x128]
mov dword [eax], esi
mov eax, dword [esp + 0x12c]
mov dword [eax], esi
xor eax, eax
jmp 0x41fdcd
mov edi, dword [esp + 0x12c]
xor ecx, ecx
push 0xf
inc ecx
pop eax
mov ebx, dword [edi]
mov dword [esp + 0x20], ebx
cmp dword [esp + ecx*4 + 0x58], esi
jne 0x41fa28
inc ecx
cmp ecx, eax
jbe 0x41fa1d
mov ebp, ecx
mov dword [esp + 0x1c], ebp
cmp ebx, ecx
jae 0x41fa38
mov ebx, ecx
mov dword [esp + 0x20], ebx
cmp dword [esp + eax*4 + 0x58], esi
jne 0x41fa43
sub eax, 1
jne 0x41fa38
mov dword [esp + 0x44], eax
cmp ebx, eax
jbe 0x41fa51
mov ebx, eax
mov dword [esp + 0x20], ebx
mov dword [edi], ebx
xor edi, edi
inc edi
shl edi, cl
jmp 0x41fa67
sub edi, dword [esp + ecx*4 + 0x58]
js 0x41fdca
inc ecx
add edi, edi
cmp ecx, eax
jb 0x41fa5a
mov ecx, eax
mov ebp, edi
shl ecx, 2
mov dword [esp + 0x30], ecx
sub edi, dword [esp + ecx + 0x58]
mov dword [esp + 0x54], edi
js 0x41fdca
mov dword [esp + ecx + 0x58], ebp
mov ebp, esi
mov dword [esp + 0x9c], esi
sub eax, 1
je 0x41faab
mov ecx, esi
add ebp, dword [esp + ecx + 0x5c]
lea ecx, [ecx + 4]
mov dword [esp + ecx + 0x9c], ebp
sub eax, 1
jne 0x41fa98
mov eax, dword [esp + 0x10]
mov ecx, esi
mov ebx, dword [esp + 0x138]
mov ebp, dword [edx]
lea edx, [edx + 4]
test ebp, ebp
je 0x41fad7
mov eax, dword [esp + ebp*4 + 0x98]
mov dword [ebx + eax*4], ecx
inc eax
mov dword [esp + ebp*4 + 0x98], eax
mov eax, dword [esp + 0x10]
inc ecx
cmp ecx, eax
jb 0x41fab8
mov eax, dword [esp + 0x30]
or ebp, 0xffffffff
mov ecx, dword [esp + 0x1c]
mov dword [esp + 0x28], esi
mov dword [esp + 0x14], ebp
mov eax, dword [esp + eax + 0x98]
mov dword [esp + 0x50], eax
mov eax, ebx
mov ebx, dword [esp + 0x20]
mov edx, ebx
mov dword [esp + 0x40], eax
neg edx
mov eax, dword [esp + 0x44]
mov dword [esp + 0x98], esi
mov dword [esp + 0xdc], esi
mov dword [esp + 0x18], esi
mov dword [esp + 0x10], esi
cmp ecx, eax
jg 0x41fdba
lea eax, [esp + 0x58]
lea eax, [eax + ecx*4]
mov dword [esp + 0x2c], eax
mov eax, dword [esp + 0x38]
mov dword [esp + 0x24], eax
mov eax, dword [esp + 0x2c]
mov eax, dword [eax]
jmp 0x41fd9c
mov dword [esp + 0x4c], eax
dec eax
mov dword [esp + 0x30], eax
lea eax, [edx + ebx]
cmp ecx, eax
jle 0x41fc74
sub edx, ebx
mov dword [esp + 0x3c], edx
add dword [esp + 0x3c], ebx
mov edx, eax
mov eax, dword [esp + 0x44]
inc ebp
sub eax, edx
mov dword [esp + 0x14], ebp
mov dword [esp + 0x48], edx
mov dword [esp + 0x10], eax
cmp eax, ebx
jbe 0x41fb83
mov dword [esp + 0x10], ebx
xor ebp, ebp
sub ecx, edx
inc ebp
shl ebp, cl
cmp ebp, dword [esp + 0x4c]
jbe 0x41fbc4
or eax, 0xffffffff
sub eax, dword [esp + 0x30]
add ebp, eax
mov eax, dword [esp + 0x2c]
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x10]
cmp ecx, eax
jae 0x41fbc4
inc ecx
cmp ecx, eax
jae 0x41fbc4
mov esi, dword [esp + 0x18]
add ebp, ebp
lea esi, [esi + 4]
cmp ebp, dword [esi]
jbe 0x41fbc2
sub ebp, dword [esi]
inc ecx
cmp ecx, eax
jb 0x41fbb2
xor esi, esi
mov eax, dword [esp + 0x134]
xor ebp, ebp
inc ebp
shl ebp, cl
mov dword [esp + 0x10], ebp
mov eax, dword [eax]
add ebp, eax
cmp ebp, 0x5a0
ja 0x41fdca
mov ebx, dword [esp + 0x130]
lea eax, [ebx + eax*8]
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x14]
mov ebx, dword [esp + 0x18]
mov dword [esp + eax*4 + 0xdc], ebx
mov ebx, dword [esp + 0x134]
mov dword [ebx], ebp
mov ebx, dword [esp + 0x20]
test eax, eax
je 0x41fc54
mov ebp, dword [esp + 0x28]
mov edx, ebp
mov dword [esp + eax*4 + 0x98], ebp
mov ebp, dword [esp + 0x18]
mov byte [esp + 0x34], cl
mov ecx, dword [esp + 0x3c]
shr edx, cl
mov ecx, dword [esp + eax*4 + 0xd8]
sub ebp, ecx
sar ebp, 3
sub ebp, edx
mov byte [esp + 0x35], bl
mov eax, dword [esp + 0x34]
mov dword [ecx + edx*8], eax
mov dword [ecx + edx*8 + 4], ebp
mov edx, dword [esp + 0x48]
mov dword [esp + 0x24], ebp
jmp 0x41fc61
mov ecx, dword [esp + 0x128]
mov eax, dword [esp + 0x18]
mov dword [ecx], eax
mov ecx, dword [esp + 0x1c]
lea eax, [edx + ebx]
mov ebp, dword [esp + 0x14]
cmp ecx, eax
jg 0x41fb62
mov ebp, dword [esp + 0x50]
mov al, cl
sub al, dl
mov byte [esp + 0x35], al
mov eax, dword [esp + 0x138]
lea eax, [eax + ebp*4]
mov ebp, dword [esp + 0x40]
cmp ebp, eax
jb 0x41fc99
mov byte [esp + 0x34], 0xc0
jmp 0x41fcf1
mov eax, dword [ebp]
add ebp, 4
mov dword [esp + 0x24], eax
mov dword [esp + 0x40], ebp
cmp eax, dword [esp + 0x11c]
jae 0x41fcc2
cmp eax, 0x100
setb al
dec al
and al, 0x60
mov byte [esp + 0x34], al
jmp 0x41fcf1
sub eax, dword [esp + 0x11c]
mov ecx, eax
mov dword [esp + 0x40], ebp
mov eax, dword [esp + 0x124]
mov al, byte [eax + ecx*4]
add al, 0x50
mov byte [esp + 0x34], al
mov eax, dword [esp + 0x120]
mov eax, dword [eax + ecx*4]
mov ecx, dword [esp + 0x1c]
mov dword [esp + 0x24], eax
mov eax, dword [esp + 0x28]
xor ebp, ebp
sub ecx, edx
inc ebp
shl ebp, cl
mov ecx, edx
shr eax, cl
cmp eax, dword [esp + 0x10]
jae 0x41fd3b
mov esi, dword [esp + 0x34]
mov ecx, ebp
mov edi, dword [esp + 0x24]
mov ebx, dword [esp + 0x10]
shl ecx, 3
mov dword [esp + 0x48], ecx
mov ecx, dword [esp + 0x18]
lea ecx, [ecx + eax*8]
mov dword [ecx], esi
add eax, ebp
mov dword [ecx + 4], edi
add ecx, dword [esp + 0x48]
cmp eax, ebx
jb 0x41fd22
mov edi, dword [esp + 0x54]
xor esi, esi
mov ebx, dword [esp + 0x20]
mov ecx, dword [esp + 0x1c]
xor eax, eax
mov ebp, dword [esp + 0x28]
inc eax
lea ecx, [ecx - 1]
shl eax, cl
jmp 0x41fd51
xor ebp, eax
shr eax, 1
test ebp, eax
jne 0x41fd4d
xor ebp, eax
mov ecx, edx
xor eax, eax
mov dword [esp + 0x28], ebp
inc eax
shl eax, cl
mov ecx, dword [esp + 0x14]
dec eax
and eax, ebp
cmp eax, dword [esp + ecx*4 + 0x98]
je 0x41fd90
mov esi, ecx
xor eax, eax
sub edx, ebx
inc eax
mov ecx, edx
shl eax, cl
dec esi
dec eax
and eax, ebp
cmp eax, dword [esp + esi*4 + 0x98]
jne 0x41fd74
mov dword [esp + 0x14], esi
xor esi, esi
mov eax, dword [esp + 0x30]
mov ecx, dword [esp + 0x1c]
mov ebp, dword [esp + 0x14]
test eax, eax
jne 0x41fb48
add dword [esp + 0x2c], 4
inc ecx
mov eax, dword [esp + 0x44]
mov dword [esp + 0x1c], ecx
cmp ecx, eax
jle 0x41fb3d
test edi, edi
je 0x41fdc6
cmp eax, 1
je 0x41fdc6
push 0xfffffffffffffffb
pop esi
mov eax, esi
jmp 0x41fdcd
push 0xfffffffffffffffd
pop eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x108
ret