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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4c68d1
mov eax, dword fs:[0]
push eax
sub esp, 0xf0
push ebx
push esi
push edi
mov eax, dword [0x521da0]
xor eax, esp
push eax
lea eax, [esp + 0x100]
mov dword fs:[0], eax
mov ebx, ecx
lea ecx, [esp + 0x6c]
call dword [0x4ce778]
xor esi, esi
lea ecx, [esp + 0x84]
mov dword [esp + 0x108], esi
call dword [0x4ce778]
or eax, 0xffffffff
mov dword [esp + 0x2c], esi
mov dword [esp + 0x30], esi
mov dword [esp + 0x3c], esi
mov dword [esp + 0x40], esi
mov dword [esp + 0x58], esi
mov dword [esp + 0x5c], esi
mov dword [esp + 0x60], esi
mov dword [esp + 0x44], esi
mov dword [esp + 0x38], eax
mov dword [esp + 0x34], eax
mov dword [esp + 0x48], eax
mov dword [esp + 0x4c], esi
mov dword [esp + 0x50], eax
mov dword [esp + 0x54], eax
mov eax, dword [ebp + 8]
mov edi, dword [eax + 0x30]
mov byte [esp + 0x108], 2
cmp edi, dword [eax + 0x34]
jbe 0x41f5f7
call fcn.00496353
mov eax, dword [ebp + 8]
mov esi, dword [eax + 0x24]
mov dword [esp + 0x18], esi
mov dword [esp + 0x1c], edi
mov ecx, dword [ebp + 8]
mov eax, dword [ecx + 0x34]
mov dword [esp + 0x24], eax
cmp dword [ecx + 0x30], eax
jbe 0x41f619
call fcn.00496353
mov ecx, dword [ebp + 8]
mov eax, dword [ecx + 0x24]
test eax, eax
je 0x41f627
cmp eax, esi
je 0x41f62c
call fcn.00496353
cmp dword [esp + 0x24], edi
je 0x41fe9e
mov edx, dword [ebp + 0x10]
cmp dword [edx + 0x8d0], 1
jne 0x41fb39
test esi, esi
jne 0x41f797
call fcn.00496353
xor eax, eax
cmp edi, dword [eax + 0x10]
jb 0x41f65f
call fcn.00496353
mov eax, dword [edi]
mov ecx, dword [eax + 0xb8]
sub ecx, dword [eax + 0xb4]
add eax, 0xa8
test ecx, 0xfffffffc
je 0x41fe79
test esi, esi
jne 0x41f79e
call fcn.00496353
xor eax, eax
cmp edi, dword [eax + 0x10]
jb 0x41f697
call fcn.00496353
mov edx, dword [edi]
add edx, 0xa8
push edx
lea ecx, [esp + 0x70]
call dword [0x4ce690]
test esi, esi
jne 0x41f7a5
call fcn.00496353
xor eax, eax
cmp edi, dword [eax + 0x10]
jb 0x41f6c3
call fcn.00496353
mov eax, dword [edi]
add eax, 0xc0
push eax
lea ecx, [esp + 0x88]
call dword [0x4ce690]
mov eax, dword [esp + 0x7c]
sub eax, dword [esp + 0x78]
sar eax, 2
mov dword [esp + 0x24], eax
test esi, esi
jne 0x41f7ac
call fcn.00496353
cmp edi, dword [esi + 0x10]
jb 0x41f6fe
call fcn.00496353
mov edx, dword [ebx + 0x11c]
sub edx, dword [ebx + 0x118]
mov ecx, dword [edi]
mov esi, dword [ecx + 4]
sar edx, 2
cmp esi, edx
jb 0x41f71b
call fcn.00496353
cmp dword [esp + 0x24], 0
mov eax, dword [ebx + 0x118]
mov esi, dword [eax + esi*4]
mov dword [esp + 0x28], 0
jle 0x41fafb
mov edi, dword [esp + 0x28]
push edi
lea ecx, [esp + 0x70]
call dword [0x4ce6f8]
mov ecx, dword [eax]
mov dword [esp + 0x20], ecx
push edi
lea ecx, [esp + 0x88]
call dword [0x4ce6f8]
mov edx, dword [eax]
mov eax, dword [esp + 0x20]
push eax
mov ecx, esi
mov dword [esp + 0x18], edx
call fcn.0045bfb0
mov ecx, dword [esp + 0x14]
mov edi, eax
mov eax, dword [esi + 0xa4]
mov dword [esp + 0x20], ecx
cmp eax, ecx
je 0x41f7b3
cmp eax, 0xffffffff
je 0x41f7b3
mov dword [esi + 0xb4], 1
mov dword [esi + 0xa8], eax
jmp 0x41f7c7
mov eax, dword [esi]
jmp 0x41f655
mov eax, dword [esi]
jmp 0x41f68d
mov eax, dword [esi]
jmp 0x41f6b9
mov esi, dword [esi]
jmp 0x41f6f4
mov dword [esi + 0xb4], 0
mov dword [esi + 0xa8], 0xffffffff
mov ecx, dword [esp + 0x14]
lea edx, [esp + 0x20]
mov dword [esi + 0xa4], ecx
push edx
lea ecx, [esi + 0x3c]
call fcn.0041c450
cmp dword [esi + 0xa4], 0xffffffff
mov ecx, dword [eax]
mov eax, dword [eax + 4]
mov dword [esp + 0x64], ecx
mov dword [esp + 0x68], eax
mov dword [esp + 0x2c], ecx
mov dword [esp + 0x30], eax
jne 0x41f806
mov dword [esp + 0x14], 0xffffffff
jmp 0x41f81b
lea eax, [esi + 0xa4]
push eax
lea ecx, [esi + 0x5c]
call fcn.00412930
mov eax, dword [eax]
mov dword [esp + 0x14], eax
cmp dword [esi + 0x298], 0
jne 0x41f888
push 0x60
call fcn.00485167
add esp, 4
mov dword [esp + 0x20], eax
mov byte [esp + 0x108], 3
test eax, eax
je 0x41f848
mov ecx, eax
call dword [0x4ce6b0]
jmp 0x41f84a
xor eax, eax
mov ecx, dword [ebp + 0xc]
push 0
push 0
push edi
mov byte [esp + 0x114], 2
mov dword [esi + 0x298], eax
call fcn.00411910
mov ecx, dword [ebp + 0xc]
push 0
push edi
call fcn.00412680
push eax
lea eax, [esi + 0x298]
push eax
mov ecx, ebx
call fcn.00417890
mov ecx, dword [ebp + 0xc]
push edi
call fcn.004124b0
cmp dword [esi + 0x28c], 0
jne 0x41f9ca
mov ecx, dword [ebp + 0x10]
cmp dword [ecx + 0x1c], 0
push 0xffffffffffffffff
je 0x41f8c0
mov edx, dword [esi]
mov eax, dword [esp + 0x18]
push 0
push 1
push edx
mov edx, dword [ebp + 0xc]
push eax
lea ecx, [esp + 0x40]
push ecx
push edi
push edx
lea eax, [esp + 0xbc]
push eax
jmp 0x41f8de
mov ecx, dword [esi]
mov edx, dword [esp + 0x18]
push 0xffffffffffffffff
push 1
push ecx
mov ecx, dword [ebp + 0xc]
push edx
lea eax, [esp + 0x40]
push eax
push edi
push ecx
lea edx, [esp + 0xbc]
push edx
mov ecx, ebx
call fcn.0041e650
mov ecx, dword [eax + 8]
mov edx, dword [eax + 0xc]
mov dword [esp + 0x3c], ecx
mov ecx, dword [eax + 0x10]
mov dword [esp + 0x40], edx
mov edx, dword [eax + 4]
mov dword [esp + 0x44], ecx
mov ecx, dword [eax]
mov dword [esp + 0x38], edx
mov edx, dword [eax + 0x14]
mov dword [esp + 0x34], ecx
mov ecx, dword [eax + 0x18]
mov dword [esp + 0x48], edx
mov edx, dword [eax + 0x1c]
mov eax, dword [eax + 0x20]
mov dword [esp + 0x54], eax
mov eax, dword [esp + 0xc0]
mov dword [esp + 0xac], 0
mov dword [esp + 0x50], edx
mov dword [esp + 0x4c], ecx
test eax, eax
je 0x41f942
push eax
call fcn.00497e19
add esp, 4
mov eax, dword [esp + 0x18]
test eax, eax
jne 0x41fb2a
call fcn.00496353
xor eax, eax
mov ecx, dword [esp + 0x1c]
cmp ecx, dword [eax + 0x10]
jb 0x41f963
call fcn.00496353
mov edx, dword [esp + 0x1c]
mov eax, dword [edx]
mov ecx, dword [esp + 0x68]
mov edx, dword [esp + 0x64]
push ecx
mov ecx, dword [ebp + 0xc]
push edx
push edi
mov dword [eax + 0xf8], 1
call fcn.00411910
mov ecx, dword [ebp + 0xc]
push 0
push edi
call fcn.00412680
push 0
mov dword [esp + 0x48], eax
push 0x15
lea eax, [esp + 0x3c]
push eax
push esi
mov ecx, ebx
call fcn.0041f1c0
mov ecx, dword [ebp + 0xc]
push edi
call fcn.004124b0
mov ecx, dword [esi + 0x28c]
push 0
add ecx, 0x68
call dword [0x4ce6cc]
fld1
mov ecx, dword [eax]
fstp dword [ecx + 0x17c]
mov edx, dword [esp + 0x14]
mov eax, dword [esi + 0x28c]
mov ecx, dword [ebx + 0x189c]
push edx
push 3
push eax
call dword [0x4ce600]
mov ecx, dword [esi + 0x28c]
push 0
add ecx, 0x18
call dword [0x4ce6a0]
mov ecx, dword [esi + 0x298]
mov dword [eax], ecx
fld dword [ebx + 0x18b8]
fisub dword [esp + 0x14]
mov eax, dword [ebx + 0x189c]
mov edx, dword [eax + 4]
mov ecx, dword [esi + 0x28c]
sub esp, 8
fstp dword [esp + 0x28]
fld dword [esp + 0x28]
fstp dword [esp + 4]
fld dword [eax + 0x26c]
fstp dword [esp]
push 0
push edx
call dword [0x4ce6c8]
mov eax, dword [esi]
mov ecx, dword [esp + 0x14]
push 0xffffffffffffffff
push 0xffffffffffffffff
push 1
push eax
mov eax, dword [ebp + 0xc]
push ecx
lea edx, [esp + 0x40]
push edx
push edi
push eax
lea ecx, [esp + 0xbc]
push ecx
mov ecx, ebx
call fcn.0041e650
mov eax, dword [esp + 0xc0]
test eax, eax
je 0x41fa72
push eax
call fcn.00497e19
add esp, 4
mov edx, dword [ebp + 0x10]
cmp dword [edx + 0x1c], 0
je 0x41faa0
mov ecx, dword [esi + 0x28c]
push 0
add ecx, 0x68
mov dword [esi + 0xb8], 1
call dword [0x4ce6cc]
fld1
mov eax, dword [eax]
fstp dword [eax + 0x17c]
mov ecx, dword [esi + 0x28c]
push 0
add ecx, 0x68
call dword [0x4ce6cc]
mov edx, dword [eax]
mov eax, dword [esp + 0x18]
mov ecx, dword [esi + 0x28c]
mov dword [ecx + 0x80], edx
test eax, eax
jne 0x41fb31
call fcn.00496353
xor eax, eax
mov edi, dword [esp + 0x1c]
cmp edi, dword [eax + 0x10]
jb 0x41fadc
call fcn.00496353
mov eax, dword [edi]
mov dword [eax + 0xe0], 3
mov eax, dword [esp + 0x28]
inc eax
cmp eax, dword [esp + 0x24]
mov dword [esp + 0x28], eax
jl 0x41f737
mov eax, dword [esp + 0x18]
test eax, eax
jne 0x41fb35
call fcn.00496353
xor eax, eax
mov ecx, dword [esp + 0x1c]
cmp ecx, dword [eax + 0x10]
jb 0x41fb18
call fcn.00496353
add dword [esp + 0x1c], 4
mov edi, dword [esp + 0x1c]
mov esi, dword [esp + 0x18]
jmp 0x41f605
mov eax, dword [eax]
jmp 0x41f955
mov eax, dword [eax]
jmp 0x41face
mov eax, dword [eax]
jmp 0x41fb0a
test esi, esi
jne 0x41fc71
call fcn.00496353
xor eax, eax
cmp edi, dword [eax + 0x10]
jb 0x41fb52
call fcn.00496353
mov edx, dword [edi]
cmp dword [edx + 0xe0], 3
jne 0x41fe79
test esi, esi
jne 0x41fc78
call fcn.00496353
xor eax, eax
cmp edi, dword [eax + 0x10]
jb 0x41fb7a
call fcn.00496353
mov eax, dword [edi]
add eax, 0xa8
push eax
lea ecx, [esp + 0x70]
call dword [0x4ce690]
test esi, esi
jne 0x41fc7f
call fcn.00496353
xor eax, eax
cmp edi, dword [eax + 0x10]
jb 0x41fba5
call fcn.00496353
mov ecx, dword [edi]
add ecx, 0xc0
push ecx
lea ecx, [esp + 0x88]
call dword [0x4ce690]
mov eax, dword [esp + 0x7c]
sub eax, dword [esp + 0x78]
sar eax, 2
mov dword [esp + 0x24], eax
test esi, esi
jne 0x41fc86
call fcn.00496353
cmp edi, dword [esi + 0x10]
jb 0x41fbe1
call fcn.00496353
mov eax, dword [ebx + 0x11c]
sub eax, dword [ebx + 0x118]
mov edx, dword [edi]
mov esi, dword [edx + 4]
sar eax, 2
cmp esi, eax
jb 0x41fbfe
call fcn.00496353
cmp dword [esp + 0x24], 0
mov ecx, dword [ebx + 0x118]
mov esi, dword [ecx + esi*4]
mov dword [esp + 0x28], 0
jle 0x41fe48
lea ebx, [ebx]
mov edi, dword [esp + 0x28]
push edi
lea ecx, [esp + 0x70]
call dword [0x4ce6f8]
push edi
lea ecx, [esp + 0x88]
call dword [0x4ce6f8]
mov edi, dword [eax]
push 1
mov ecx, esi
call fcn.00418200
mov dword [esp + 0x14], eax
mov eax, dword [esi + 0xa4]
mov dword [esp + 0x20], edi
cmp eax, edi
je 0x41fc8d
cmp eax, 0xffffffff
je 0x41fc8d
mov dword [esi + 0xb4], 1
mov dword [esi + 0xa8], eax
jmp 0x41fca1
mov eax, dword [esi]
jmp 0x41fb48
mov eax, dword [esi]
jmp 0x41fb70
mov eax, dword [esi]
jmp 0x41fb9b
mov esi, dword [esi]
jmp 0x41fbd7
mov dword [esi + 0xb4], 0
mov dword [esi + 0xa8], 0xffffffff
lea edx, [esp + 0x20]
push edx
lea ecx, [esi + 0x3c]
mov dword [esi + 0xa4], edi
call fcn.0041c450
mov ecx, dword [eax]
mov eax, dword [eax + 4]
mov dword [esp + 0x30], eax
mov eax, dword [esi]
mov dword [esp + 0x2c], ecx
mov ecx, dword [esp + 0x14]
push eax
push ecx
lea edx, [esp + 0xa4]
push edx
mov ecx, ebx
call fcn.00419d20
mov ecx, dword [eax + 8]
mov edx, dword [eax + 0xc]
mov dword [esp + 0x3c], ecx
mov ecx, dword [eax + 0x10]
mov dword [esp + 0x40], edx
mov edx, dword [eax + 4]
mov dword [esp + 0x44], ecx
mov ecx, dword [eax]
mov dword [esp + 0x38], edx
mov edx, dword [eax + 0x14]
mov dword [esp + 0x34], ecx
mov ecx, dword [eax + 0x18]
mov dword [esp + 0x48], edx
mov edx, dword [eax + 0x1c]
mov eax, dword [eax + 0x20]
mov dword [esp + 0x54], eax
mov eax, dword [esp + 0xc0]
mov dword [esp + 0x4c], ecx
mov dword [esp + 0x50], edx
mov dword [esp + 0xac], 0
test eax, eax
je 0x41fd35
push eax
call fcn.00497e19
add esp, 4
cmp dword [esi + 0xd4], 1
jne 0x41fd59
mov ecx, dword [ebp + 0xc]
push 0
push 0
push esi
push ecx
mov ecx, ebx
call fcn.0041d120
lea ecx, [esi + 0xd8]
call fcn.0041c730
mov eax, dword [esi + 0x28c]
mov dword [esi + 0xd4], 0
test eax, eax
je 0x41fe21
mov ecx, dword [ebx + 0x189c]
push 3
push eax
call dword [0x4ce5fc]
mov edx, dword [esi]
push edx
push 1
mov ecx, esi
call fcn.00418200
push eax
lea eax, [esp + 0xd4]
push eax
mov ecx, ebx
call fcn.00419d20
mov ecx, dword [eax + 8]
mov edx, dword [eax + 0xc]
mov edi, dword [eax]
mov dword [esp + 0x3c], ecx
mov ecx, dword [eax + 0x10]
mov dword [esp + 0x40], edx
mov edx, dword [eax + 4]
mov dword [esp + 0x44], ecx
mov ecx, dword [eax + 0x14]
mov dword [esp + 0x38], edx
mov edx, dword [eax + 0x18]
mov dword [esp + 0x48], ecx
mov ecx, dword [eax + 0x1c]
mov dword [esp + 0x4c], edx
mov edx, dword [eax + 0x20]
mov eax, dword [esp + 0xf0]
mov dword [esp + 0x34], edi
mov dword [esp + 0x50], ecx
mov dword [esp + 0x54], edx
mov dword [esp + 0xdc], 0
test eax, eax
je 0x41fdf9
push eax
call fcn.00497e19
add esp, 4
xor eax, eax
mov dword [esp + 0xf4], 0x40
mov dword [esp + 0xf8], eax
cmp edi, dword [esi]
jne 0x41fe23
mov eax, dword [ebp + 0xc]
push eax
lea ecx, [esp + 0x38]
push ecx
mov ecx, ebx
call fcn.0041b4c0
xor eax, eax
mov dword [esi + 0xb4], eax
mov dword [esi + 0x1a8], eax
mov dword [esi + 0xb0], eax
mov eax, dword [esp + 0x28]
inc eax
cmp eax, dword [esp + 0x24]
mov dword [esp + 0x28], eax
jl 0x41fc20
mov eax, dword [esp + 0x18]
test eax, eax
jne 0x41fe96
call fcn.00496353
xor eax, eax
mov esi, dword [esp + 0x1c]
cmp esi, dword [eax + 0x10]
jb 0x41fe65
call fcn.00496353
mov edx, dword [esi]
mov esi, dword [esp + 0x18]
mov edi, dword [esp + 0x1c]
mov dword [edx + 0xe0], 1
test esi, esi
jne 0x41fe9a
call fcn.00496353
xor eax, eax
cmp edi, dword [eax + 0x10]
jb 0x41fe8e
call fcn.00496353
add edi, 4
jmp 0x41f601
mov eax, dword [eax]
jmp 0x41fe57
mov eax, dword [esi]
jmp 0x41fe84
lea ecx, [esp + 0x84]
mov byte [esp + 0x108], 0
call dword [0x4ce78c]
lea ecx, [esp + 0x6c]
mov dword [esp + 0x108], 0xffffffff
call dword [0x4ce78c]
mov ecx, dword [esp + 0x100]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc