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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4ba4b0
mov eax, dword fs:[0]
push eax
sub esp, 0x50
push ebx
push esi
push edi
mov eax, dword [0x4f52c0]
xor eax, esp
push eax
lea eax, [esp + 0x60]
mov dword fs:[0], eax
call fcn.0041fb20
call fcn.00420ab0
lea esi, [esp + 0x2c]
call fcn.00417710
lea eax, [esp + 0x14]
xor edi, edi
push eax
mov ecx, 0x4c8a90
mov dword [esp + 0x6c], edi
call fcn.00401d40
mov byte [esp + 0x68], 1
mov esi, dword [0x4fb3a0]
mov eax, dword [esi + 0x2c]
cmp eax, 4
jle 0x41f67b
dec eax
mov dword [esp + 0x18], eax
cmp eax, 3
jle 0x41f667
mov ebx, eax
lea edi, [ebx + ebx*2]
shl edi, 4
inc ebx
mov edi, edi
cmp ebx, eax
jb 0x41f671
cmp ebx, 1
jb 0x41f671
mov eax, dword [esi + 0x2c]
cmp ebx, eax
ja 0x41f671
sub eax, ebx
mov dword [esp + 0x24], eax
mov eax, dword [esi + 0x28]
add eax, edi
call fcn.004177c0
cmp dword [esp + 0x24], 0
jbe 0x41f64a
mov eax, dword [esi + 0x28]
lea ecx, [eax + edi + 0x30]
lea edx, [eax + edi]
mov eax, dword [esp + 0x24]
call fcn.0041aac0
mov eax, dword [esp + 0x18]
dec dword [esi + 0x2c]
mov esi, dword [0x4fb3a0]
dec eax
dec ebx
sub edi, 0x30
mov dword [esp + 0x18], eax
cmp eax, 3
jg 0x41f610
xor edi, edi
mov dword [esp + 0x24], 4
jmp 0x41f67f
push 0x80070057
call fcn.00402be0
mov dword [esp + 0x24], eax
mov dword [esp + 0x1c], edi
cmp dword [esp + 0x24], edi
jle 0x41fad4
mov dword [esp + 0x20], edi
jmp 0x41f699
mov esi, dword [0x4fb3a0]
mov ecx, dword [esp + 0x1c]
cmp ecx, dword [esi + 0x2c]
jae 0x41f671
mov edi, dword [esi + 0x28]
add edi, dword [esp + 0x20]
mov esi, dword [esp + 0x30]
mov ecx, dword [edi + 4]
mov edx, dword [edi]
lea eax, [ecx - 0x10]
add esi, 0xfffffff0
mov dword [esp + 0x18], edi
mov dword [esp + 0x2c], edx
cmp eax, esi
je 0x41f70d
cmp dword [esi + 0xc], 0
lea ebx, [esi + 0xc]
jl 0x41f6ff
mov edx, dword [eax]
cmp edx, dword [esi]
jne 0x41f6ff
call fcn.00404350
mov dword [esp + 0x28], eax
or eax, 0xffffffff
lock xadd dword [ebx], eax
dec eax
test eax, eax
jg 0x41f6f2
mov ecx, dword [esi]
mov edx, dword [ecx]
mov eax, dword [edx + 4]
push esi
call eax
mov ecx, dword [esp + 0x28]
add ecx, 0x10
mov dword [esp + 0x30], ecx
jmp 0x41f70d
mov ebx, dword [ecx - 0xc]
push ecx
lea edx, [esp + 0x34]
push edx
call fcn.00401c50
mov ecx, dword [edi + 8]
mov esi, dword [esp + 0x34]
lea eax, [ecx - 0x10]
add esi, 0xfffffff0
cmp eax, esi
je 0x41f767
cmp dword [esi + 0xc], 0
lea ebx, [esi + 0xc]
jl 0x41f759
mov edx, dword [eax]
cmp edx, dword [esi]
jne 0x41f759
call fcn.00404350
mov dword [esp + 0x28], eax
or eax, 0xffffffff
lock xadd dword [ebx], eax
dec eax
test eax, eax
jg 0x41f74c
mov ecx, dword [esi]
mov edx, dword [ecx]
mov eax, dword [edx + 4]
push esi
call eax
mov ecx, dword [esp + 0x28]
add ecx, 0x10
mov dword [esp + 0x34], ecx
jmp 0x41f767
mov ebx, dword [ecx - 0xc]
push ecx
lea edx, [esp + 0x38]
push edx
call fcn.00401c50
mov ecx, dword [edi + 0xc]
mov esi, dword [esp + 0x38]
lea eax, [ecx - 0x10]
add esi, 0xfffffff0
cmp eax, esi
je 0x41f7c1
cmp dword [esi + 0xc], 0
lea ebx, [esi + 0xc]
jl 0x41f7b3
mov edx, dword [eax]
cmp edx, dword [esi]
jne 0x41f7b3
call fcn.00404350
mov dword [esp + 0x28], eax
or eax, 0xffffffff
lock xadd dword [ebx], eax
dec eax
test eax, eax
jg 0x41f7a6
mov ecx, dword [esi]
mov edx, dword [ecx]
mov eax, dword [edx + 4]
push esi
call eax
mov ecx, dword [esp + 0x28]
add ecx, 0x10
mov dword [esp + 0x38], ecx
jmp 0x41f7c1
mov ebx, dword [ecx - 0xc]
push ecx
lea edx, [esp + 0x3c]
push edx
call fcn.00401c50
mov ecx, dword [edi + 0x10]
mov esi, dword [esp + 0x3c]
lea eax, [ecx - 0x10]
add esi, 0xfffffff0
cmp eax, esi
je 0x41f81b
cmp dword [esi + 0xc], 0
lea ebx, [esi + 0xc]
jl 0x41f80d
mov edx, dword [eax]
cmp edx, dword [esi]
jne 0x41f80d
call fcn.00404350
mov dword [esp + 0x28], eax
or eax, 0xffffffff
lock xadd dword [ebx], eax
dec eax
test eax, eax
jg 0x41f800
mov ecx, dword [esi]
mov edx, dword [ecx]
mov eax, dword [edx + 4]
push esi
call eax
mov ecx, dword [esp + 0x28]
add ecx, 0x10
mov dword [esp + 0x3c], ecx
jmp 0x41f81b
mov ebx, dword [ecx - 0xc]
push ecx
lea edx, [esp + 0x40]
push edx
call fcn.00401c50
mov ecx, dword [edi + 0x14]
mov esi, dword [esp + 0x40]
lea eax, [ecx - 0x10]
add esi, 0xfffffff0
cmp eax, esi
je 0x41f873
cmp dword [esi + 0xc], 0
lea ebx, [esi + 0xc]
jl 0x41f865
mov edx, dword [eax]
cmp edx, dword [esi]
jne 0x41f865
call fcn.00404350
mov edi, eax
or eax, 0xffffffff
lock xadd dword [ebx], eax
dec eax
test eax, eax
jg 0x41f858
mov ecx, dword [esi]
mov edx, dword [ecx]
mov eax, dword [edx + 4]
push esi
call eax
add edi, 0x10
mov dword [esp + 0x40], edi
mov edi, dword [esp + 0x18]
jmp 0x41f873
mov ebx, dword [ecx - 0xc]
push ecx
lea ecx, [esp + 0x44]
push ecx
call fcn.00401c50
mov ecx, dword [edi + 0x18]
mov esi, dword [esp + 0x44]
lea eax, [ecx - 0x10]
add esi, 0xfffffff0
cmp eax, esi
je 0x41f8cb
cmp dword [esi + 0xc], 0
lea ebx, [esi + 0xc]
jl 0x41f8bd
mov edx, dword [eax]
cmp edx, dword [esi]
jne 0x41f8bd
call fcn.00404350
mov edi, eax
or eax, 0xffffffff
lock xadd dword [ebx], eax
dec eax
test eax, eax
jg 0x41f8b0
mov ecx, dword [esi]
mov edx, dword [ecx]
mov eax, dword [edx + 4]
push esi
call eax
add edi, 0x10
mov dword [esp + 0x44], edi
mov edi, dword [esp + 0x18]
jmp 0x41f8cb
mov ebx, dword [ecx - 0xc]
push ecx
lea ecx, [esp + 0x48]
push ecx
call fcn.00401c50
mov ecx, dword [edi + 0x1c]
mov esi, dword [esp + 0x48]
lea eax, [ecx - 0x10]
add esi, 0xfffffff0
cmp eax, esi
je 0x41f923
cmp dword [esi + 0xc], 0
lea ebx, [esi + 0xc]
jl 0x41f915
mov edx, dword [eax]
cmp edx, dword [esi]
jne 0x41f915
call fcn.00404350
mov edi, eax
or eax, 0xffffffff
lock xadd dword [ebx], eax
dec eax
test eax, eax
jg 0x41f908
mov ecx, dword [esi]
mov edx, dword [ecx]
mov eax, dword [edx + 4]
push esi
call eax
add edi, 0x10
mov dword [esp + 0x48], edi
mov edi, dword [esp + 0x18]
jmp 0x41f923
mov ebx, dword [ecx - 0xc]
push ecx
lea ecx, [esp + 0x4c]
push ecx
call fcn.00401c50
mov eax, dword [edi + 0x24]
mov ecx, dword [edi + 0x28]
mov esi, dword [esp + 0x54]
mov edx, dword [edi + 0x20]
mov dword [esp + 0x50], eax
lea eax, [ecx - 0x10]
add esi, 0xfffffff0
mov dword [esp + 0x4c], edx
cmp eax, esi
je 0x41f989
cmp dword [esi + 0xc], 0
lea ebx, [esi + 0xc]
jl 0x41f97b
mov edx, dword [eax]
cmp edx, dword [esi]
jne 0x41f97b
call fcn.00404350
mov edi, eax
or eax, 0xffffffff
lock xadd dword [ebx], eax
dec eax
test eax, eax
jg 0x41f96e
mov ecx, dword [esi]
mov edx, dword [ecx]
mov eax, dword [edx + 4]
push esi
call eax
add edi, 0x10
mov dword [esp + 0x54], edi
mov edi, dword [esp + 0x18]
jmp 0x41f989
mov ebx, dword [ecx - 0xc]
push ecx
lea ecx, [esp + 0x58]
push ecx
call fcn.00401c50
mov eax, dword [esp + 0x38]
mov esi, dword [esp + 0x14]
mov dl, byte [edi + 0x2c]
add eax, 0xfffffff0
add esi, 0xfffffff0
mov byte [esp + 0x58], dl
cmp eax, esi
je 0x41f9e9
cmp dword [esi + 0xc], 0
lea ebx, [esi + 0xc]
jl 0x41f9d7
mov ecx, dword [eax]
cmp ecx, dword [esi]
jne 0x41f9d7
call fcn.00404350
mov edi, eax
or edx, 0xffffffff
lock xadd dword [ebx], edx
dec edx
test edx, edx
jg 0x41f9ce
mov ecx, dword [esi]
mov eax, dword [ecx]
mov edx, dword [eax + 4]
push esi
call edx
add edi, 0x10
mov dword [esp + 0x14], edi
jmp 0x41f9e9
mov eax, dword [esp + 0x38]
mov ebx, dword [eax - 0xc]
push eax
lea eax, [esp + 0x18]
push eax
call fcn.00401c50
mov ecx, dword [ebp + 8]
mov eax, dword [esp + 0x1c]
mov edx, dword [ecx + 0x70]
mov edx, dword [edx + 0x3c]
add ecx, 0x70
add eax, 0x3e8
push eax
call edx
mov esi, eax
test esi, esi
je 0x41fabc
mov eax, dword [esi]
mov edx, dword [eax + 0x24]
push 1
mov ecx, esi
call edx
mov edx, dword [esp + 0x14]
lea edi, [esi + 0x78]
test edx, edx
jne 0x41fa25
xor eax, eax
jmp 0x41fa3f
mov eax, edx
lea ebx, [eax + 2]
lea ebx, [ebx]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x41fa30
sub eax, ebx
sar eax, 1
push edx
push edi
mov ebx, eax
call fcn.00401c50
cmp byte [esi + 0x24], 0
je 0x41fa80
cmp byte [esi + 0x25], 0
je 0x41fa80
cmp byte [esi + 0x26], 0
je 0x41fa80
mov ecx, dword [esi + 0x1c]
test ecx, ecx
je 0x41fa80
mov eax, dword [esi + 4]
test eax, eax
je 0x41fa80
cmp byte [eax + 0xab], 0
mov edx, dword [ecx]
mov edx, dword [edx + 0x14]
sete al
movzx eax, al
push 0
push eax
push esi
call edx
cmp byte [esi + 0x24], 0
mov byte [esi + 0x74], 1
je 0x41fabc
cmp byte [esi + 0x25], 0
je 0x41fabc
cmp byte [esi + 0x26], 0
je 0x41fabc
mov ecx, dword [esi + 0x1c]
test ecx, ecx
je 0x41fabc
mov eax, dword [esi + 4]
test eax, eax
je 0x41fabc
cmp byte [eax + 0xab], 0
mov edx, dword [ecx]
mov edx, dword [edx + 0x14]
sete al
movzx eax, al
push 0
push eax
push esi
call edx
mov eax, dword [esp + 0x1c]
add dword [esp + 0x20], 0x30
inc eax
mov dword [esp + 0x1c], eax
cmp eax, dword [esp + 0x24]
jl 0x41f693
mov byte [esp + 0x68], 0
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x41faf9
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea eax, [esp + 0x2c]
mov dword [esp + 0x68], 0xffffffff
call fcn.004177c0
mov ecx, dword [esp + 0x60]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4