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

Disassembly:
mov eax, 0x4aafb2
call fcn.004a51d0
sub esp, 0xf0
push ebx
push esi
push edi
xor ebx, ebx
mov esi, edx
push 1
cmp ecx, ebx
mov dword [ebp - 0x24], esi
mov dword [ebp - 0x10], ecx
pop edi
jne 0x41fa79
mov dword [ebp - 0x10], edi
mov eax, dword [ebp + 0x28]
lea edx, [ebp - 0x50]
lea ecx, [eax + 0xc]
call fcn.0040b0c6
test al, al
je 0x41fdda
cmp esi, ebx
mov dword [ebp - 0x14], edi
je 0x41fa99
mov dword [ebp - 0x14], esi
mov esi, dword [ebp + 0x1c]
push ebx
push 0x100
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.004a54d0
push ebx
push esi
push edx
push eax
call fcn.004a53a0
push ebx
push dword [ebp - 0x14]
push edx
push eax
call fcn.004a53a0
mov dword [ebp - 0x20], eax
or eax, edx
mov dword [ebp - 0x1c], edx
jne 0x41fad5
mov dword [ebp - 0x20], 1
mov dword [ebp - 0x1c], ebx
mov edi, dword [ebp - 0x10]
mov dword [ebp - 0xcc], ebx
cmp edi, 1
mov dword [ebp - 0xc8], ebx
mov dword [ebp - 0x7c], ebx
mov dword [ebp - 0x78], ebx
ja 0x41fafa
mov eax, dword [ebp + 0x30]
cmp dword [eax], ebx
je 0x41fd88
lea ecx, [ebp - 0x3c]
call fcn.00420074
mov eax, edi
mov dword [ebp - 4], ebx
imul eax, eax, 0x78
add eax, 4
push eax
call fcn.00401e6b
pop ecx
mov dword [ebp + 0xc], eax
cmp eax, ebx
mov byte [ebp - 4], 1
je 0x41fb39
push fcn.0041b783
push 0x420021
lea esi, [eax + 4]
push edi
push 0x78
push esi
mov dword [eax], edi
call fcn.004a52ea
jmp 0x41fb3b
xor esi, esi
and byte [ebp - 4], 0
xor edx, edx
lea ecx, [ebp - 0x30]
mov dword [ebp - 0x3c], esi
call fcn.0049abf0
cmp eax, ebx
je 0x41fb63
jle 0x41fb5c
and eax, 0xffff
or eax, 0x80070000
mov esi, eax
jmp 0x41fd77
cmp edi, ebx
mov byte [ebp - 0x2c], 1
mov dword [ebp + 0xc], ebx
jbe 0x41fc57
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x28], ebx
mov eax, dword [ebp - 0x3c]
mov ecx, dword [ebp - 0x28]
lea esi, [ecx + eax]
lea ecx, [ebp - 0x74]
call fcn.004027d4
push dword [ebp - 0x4c]
lea edi, [esi + 0x28]
mov edx, edi
lea ecx, [ebp - 0x74]
push dword [ebp - 0x50]
mov byte [ebp - 4], 2
call fcn.0040b40a
cmp eax, ebx
jne 0x41fd4b
cmp dword [edi], ebx
je 0x41fd4f
mov dword [ebp - 0x18], ebx
mov edi, dword [edi]
lea ecx, [ebp - 0x18]
push ecx
push 0x4b54d8
mov eax, dword [edi]
push edi
mov byte [ebp - 4], 3
call dword [eax]
cmp dword [ebp - 0x18], ebx
je 0x41fbe2
mov ecx, dword [ebp + 0x28]
push ebx
push dword [ebp - 0x18]
call fcn.0040e4ee
mov edi, eax
cmp edi, ebx
jne 0x41fd56
mov eax, dword [ebp + 0x2c]
and byte [esi + 0x20], 0
mov dword [esi + 4], eax
mov eax, dword [ebp + 0x10]
mov dword [esi + 0xc], eax
mov eax, dword [ebp - 0x20]
mov dword [esi + 0x18], eax
mov eax, dword [ebp - 0x1c]
mov dword [esi + 0x1c], eax
mov eax, dword [ebp - 0x24]
mov dword [esi + 0x10], eax
mov eax, dword [ebp + 0x24]
cmp eax, ebx
je 0x41fc14
mov eax, dword [eax]
mov byte [esi + 0x20], 1
mov dword [esi + 0x24], eax
mov eax, dword [ebp - 0x14]
mov byte [ebp - 4], 2
and eax, 0x7ff
mov dword [esi + 0x74], eax
mov eax, dword [ebp - 0x18]
cmp eax, ebx
je 0x41fc30
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
push dword [ebp - 0x74]
and byte [ebp - 4], 0
call fcn.00401e9f
inc dword [ebp + 0xc]
mov eax, dword [ebp + 0xc]
add dword [ebp - 0x28], 0x78
sub dword [ebp - 0x14], 0x2c0
cmp eax, dword [ebp - 0x10]
pop ecx
jb 0x41fb78
cmp dword [ebp - 0x10], ebx
mov dword [ebp + 0xc], ebx
jbe 0x41fcaa
mov dword [ebp + 0x28], ebx
mov eax, dword [ebp - 0x3c]
mov ecx, dword [ebp + 0x28]
mov esi, dword [ebp + 0x30]
push 7
lea ebx, [eax + ecx]
mov eax, dword [ebp + 0xc]
pop ecx
mov dword [ebx + 0x38], eax
lea eax, [ebp - 0x34]
lea edi, [ebx + 0x40]
mov dword [ebx + 0x3c], eax
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
call fcn.0041ffc1
cmp dword [ebx], 0
je 0x41fc91
inc dword [ebp - 0x38]
test eax, eax
jne 0x41fb5c
inc dword [ebp + 0xc]
mov eax, dword [ebp + 0xc]
add dword [ebp + 0x28], 0x78
cmp eax, dword [ebp - 0x10]
jb 0x41fc62
xor ebx, ebx
cmp dword [ebp - 0x10], ebx
mov dword [ebp + 0xc], ebx
jbe 0x41fce4
xor edi, edi
mov eax, dword [ebp - 0x3c]
mov ecx, dword [edi + eax + 0x34]
lea esi, [edi + eax]
call fcn.0049aa90
cmp eax, ebx
jne 0x41fb50
mov esi, dword [esi + 0x2c]
cmp esi, ebx
jne 0x41fd77
inc dword [ebp + 0xc]
mov eax, dword [ebp + 0xc]
add edi, 0x78
cmp eax, dword [ebp - 0x10]
jb 0x41fcb4
lea ecx, [ebp - 0xfc]
call fcn.00419374
lea ecx, [ebp - 0x3c]
push ebx
call fcn.0041b7c9
cmp eax, ebx
jne 0x41fb50
lea eax, [ebp - 0xac]
lea ecx, [ebp - 0xfc]
push eax
call fcn.0041941f
xor ecx, ecx
cmp dword [ebp - 0x10], ebx
jbe 0x41fd3a
mov eax, dword [ebp - 0x3c]
add eax, 0xffffffb8
mov esi, dword [eax + 0x74]
cmp esi, ebx
jne 0x41fd77
cmp ecx, ebx
je 0x41fd31
mov edx, dword [eax + 0x78]
cmp edx, dword [eax]
jne 0x41fd74
inc ecx
add eax, 0x78
cmp ecx, dword [ebp - 0x10]
jb 0x41fd1f
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x3c]
call fcn.00420087
jmp 0x41fedc
mov esi, eax
jmp 0x41fd69
mov esi, 0x80004001
jmp 0x41fd69
mov eax, dword [ebp - 0x18]
mov byte [ebp - 4], 2
cmp eax, ebx
je 0x41fd67
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov esi, edi
push dword [ebp - 0x74]
call fcn.00401e9f
pop ecx
jmp 0x41fd77
push 1
pop esi
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x3c]
call fcn.00420087
jmp 0x41fe90
mov dword [ebp + 0x30], ebx
lea ecx, [ebp - 0x48]
mov dword [ebp - 4], 4
call fcn.004027d4
push dword [ebp - 0x4c]
lea edx, [ebp + 0x30]
lea ecx, [ebp - 0x48]
mov byte [ebp - 4], 5
push dword [ebp - 0x50]
call fcn.0040b40a
mov esi, eax
cmp esi, ebx
jne 0x41fe76
mov eax, dword [ebp + 0x30]
cmp eax, ebx
jne 0x41fde4
push dword [ebp - 0x48]
call fcn.00401e9f
mov eax, dword [ebp + 0x30]
or dword [ebp - 4], 0xffffffff
cmp eax, ebx
pop ecx
je 0x41fdda
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, 0x80004001
jmp 0x41ffb0
mov dword [ebp + 0xc], ebx
mov ecx, dword [eax]
lea edx, [ebp + 0xc]
push edx
push 0x4b54d8
push eax
mov byte [ebp - 4], 6
call dword [ecx]
cmp dword [ebp + 0xc], ebx
je 0x41fe10
mov ecx, dword [ebp + 0x28]
push ebx
push dword [ebp + 0xc]
call fcn.0040e4ee
mov esi, eax
cmp esi, ebx
jne 0x41fe65
mov dword [ebp - 0x68], ebx
mov dword [ebp - 0x64], ebx
mov dword [ebp - 0x54], ebx
push dword [ebp - 0x24]
and byte [ebp - 0x58], 0
lea ecx, [ebp - 0x68]
mov byte [ebp - 4], 7
push dword [ebp + 0x10]
call fcn.0041b484
mov esi, eax
cmp esi, ebx
jne 0x41fe5d
lea ecx, [ebp - 0xfc]
call fcn.00419374
lea ecx, [ebp - 0x68]
push dword [ebp + 0x2c]
push dword [ebp + 0x30]
push dword [ebp + 0x24]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
call fcn.0041b53f
mov esi, eax
cmp esi, ebx
je 0x41fe97
mov ecx, dword [ebp - 0x68]
call fcn.00489530
mov eax, dword [ebp + 0xc]
mov byte [ebp - 4], 5
cmp eax, ebx
je 0x41fe76
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
push dword [ebp - 0x48]
call fcn.00401e9f
mov eax, dword [ebp + 0x30]
or dword [ebp - 4], 0xffffffff
cmp eax, ebx
pop ecx
je 0x41fe90
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, esi
jmp 0x41ffb0
lea eax, [ebp - 0xac]
lea ecx, [ebp - 0xfc]
push eax
call fcn.0041941f
mov ecx, dword [ebp - 0x68]
call fcn.00489530
mov eax, dword [ebp + 0xc]
mov byte [ebp - 4], 5
cmp eax, ebx
je 0x41fec2
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
push dword [ebp - 0x48]
call fcn.00401e9f
mov eax, dword [ebp + 0x30]
or dword [ebp - 4], 0xffffffff
cmp eax, ebx
pop ecx
je 0x41fedc
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
push ebx
push dword [ebp - 0x10]
push ebx
push dword [ebp - 0x24]
call fcn.004a54d0
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push edx
push eax
call fcn.004a54d0
cmp dword [ebp + 0x2c], ebx
mov esi, eax
mov edi, edx
mov dword [ebp - 0x8c], esi
mov dword [ebp - 0x88], edi
mov dword [ebp - 0x84], esi
mov dword [ebp - 0x80], edi
mov dword [ebp - 0x7c], 1
mov dword [ebp - 0x78], ebx
je 0x41ff86
cmp byte [ebp + 0x34], 0
je 0x41ff7a
mov ecx, esi
or ecx, edi
jne 0x41ff39
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push ebx
push dword [ebp - 0x10]
call fcn.004a54d0
push edx
push eax
xor eax, eax
push eax
push dword [ebp + 0x1c]
call fcn.004a54d0
push 8
pop ecx
call fcn.004a5490
lea ecx, [ebp - 0xac]
push edx
push eax
call fcn.00419653
mov ecx, dword [ebp + 0x2c]
push dword [ebp + 0x38]
push dword [ebp + 0x44]
push dword [ebp + 0x40]
push dword [ebp + 0x3c]
push edx
push eax
push dword [ebp + 0x20]
lea edx, [ebp - 0xac]
call fcn.0041bb17
mov ecx, dword [ebp + 0x2c]
mov eax, dword [ecx]
call dword [eax + 8]
cmp eax, ebx
jne 0x41ffb0
push edi
push esi
lea ecx, [ebp - 0xac]
call fcn.00419653
mov ecx, dword [ebp + 0x14]
mov dword [ecx], eax
mov dword [ecx + 4], edx
lea ecx, [ebp - 0xac]
call fcn.0041955c
mov ecx, dword [ebp + 0x18]
mov dword [ecx], eax
mov dword [ecx + 4], edx
xor eax, eax
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 0x40