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

Disassembly:
push 0xffffffffffffffff
push 0x4a80a6
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push ebx
push ebp
push esi
push edi
mov esi, ecx
call fcn.004892a0
xor ebx, ebx
xor eax, eax
mov dword [esi + 0xa04], ebx
mov ecx, 0x210c
lea edi, [esi + 0xe08]
rep stosd dword es:[edi], eax
mov eax, dword [0x8dd294]
cmp eax, ebx
jl 0x407b16
cmp eax, 8
jl 0x407b20
mov eax, 6
mov dword [0x8dd294], eax
mov ecx, dword [0x8dd298]
cmp ecx, ebx
jl 0x407b2f
cmp ecx, 5
jl 0x407b39
mov dword [0x8dd298], 1
mov dword [esi + 8], eax
mov eax, dword [0x8dd298]
mov dword [esi + 0xc], eax
mov ecx, dword [0x8dd294]
mov eax, dword [ecx*4 + 0x4aa330]
mov dword [esp + 0x10], eax
fild dword [esp + 0x10]
mov dword [esi + 0x10], eax
mov edx, dword [0x8dd298]
fmul qword [edx*8 + 0x4aa350]
fadd qword [0x4a9fb0]
call fcn.00412290
mov dword [esi + 0x14], eax
mov eax, dword [0x8d8208]
mov dword [esi + 0x18], eax
mov ecx, dword [0x8d8214]
push 0xb78
mov dword [esi + 0x1c], ecx
call fcn.00496f9b
mov edi, eax
add esp, 4
cmp edi, ebx
je 0x407beb
mov ebp, dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
lea eax, [edi + 0xb48]
push eax
mov dword [edi + 0x860], 1
mov dword [edi + 0x864], ebx
mov dword [edi + 0x868], ebx
mov dword [edi + 0x86c], ebx
call ebp
lea eax, [edi + 0xb60]
push eax
call ebp
mov dword [edi], ebx
mov dword [edi + 0xa18], ebx
mov dword [edi + 0xa1c], ebx
mov dword [edi + 0xa14], ebx
mov byte [edi + 0xb3b], bl
jmp 0x407bed
xor edi, edi
mov edx, dword [esp + 0x24]
mov ecx, dword [esp + 0x28]
mov dword [esi + 4], edi
mov dword [edi + 0xb3c], edx
mov eax, dword [esi + 4]
mov dword [eax + 0xb40], ecx
mov edx, dword [esi + 0x14]
mov eax, dword [esi + 0x10]
mov ecx, dword [esi + 4]
push edx
push eax
call fcn.0040a310
push 0xa8
call fcn.00496f9b
add esp, 4
mov dword [esp + 0x24], eax
cmp eax, ebx
mov dword [esp + 0x1c], ebx
je 0x407c3a
push esi
mov ecx, eax
call fcn.0047e790
jmp 0x407c3c
xor eax, eax
mov ecx, dword [esi + 4]
or edi, 0xffffffff
mov dword [esi], eax
push 0x14
mov dword [esp + 0x20], edi
mov dword [ecx + 0xb34], eax
call fcn.00496f9b
add esp, 4
mov dword [esp + 0x24], eax
cmp eax, ebx
mov dword [esp + 0x1c], 1
je 0x407c76
push 0x10000
mov ecx, eax
call fcn.0048b5e0
jmp 0x407c78
xor eax, eax
mov ecx, eax
mov dword [esp + 0x1c], edi
mov dword [esi + 0x24], eax
call fcn.0048b620
mov edx, dword [esi + 4]
mov dword [esi + 0x2c], ebx
mov dword [esi + 0x28], ebx
mov byte [esi + 0x30], bl
mov ecx, esi
mov byte [edx + 0xb38], bl
call fcn.00407780
xor eax, eax
mov byte [esi + 0xa00], bl
mov ecx, 0x110
lea edi, [esi + 0x44]
rep stosd dword es:[edi], eax
lea edi, [esi + 0x484]
mov ecx, 0x110
rep stosd dword es:[edi], eax
mov ecx, 0x44
lea edi, [esi + 0x8c4]
rep stosd dword es:[edi], eax
mov edx, dword [esi + 0x14]
mov ecx, dword [esi]
mov eax, dword [ecx]
push edx
mov edx, dword [esi + 0x10]
push edx
call dword [eax + 0x30]
xor ebp, ebp
mov edi, 0x8dd2a4
mov edx, dword [edi + 0x1c]
mov ecx, dword [esi]
mov eax, dword [ecx]
push edx
mov edx, dword [edi]
push edx
push ebp
call dword [eax + 0x3c]
add edi, 4
inc ebp
cmp edi, 0x8dd2c0
jl 0x407ce1
lea eax, [esi + 0x484]
xor ebp, ebp
mov edi, 0x8dc54a
mov dword [esp + 0x24], eax
cmp byte [edi], bl
je 0x407d3a
push edi
call fcn.0048b770
add esp, 4
test al, al
je 0x407d3a
mov ecx, dword [esi]
mov eax, dword [ecx]
push edi
push ebp
call dword [eax + 0x78]
mov ecx, dword [esp + 0x24]
push edi
push 0x104
push ecx
call fcn.00489320
add esp, 0xc
mov ecx, dword [esp + 0x24]
add edi, 0x104
add ecx, 0x110
inc ebp
cmp edi, 0x8dc95a
mov dword [esp + 0x24], ecx
jl 0x407d0d
mov ecx, dword [esi]
mov edx, dword [ecx]
call dword [edx + 4]
mov ecx, dword [esp + 0x14]
pop edi
mov byte [esi + 0x20], bl
mov byte [esi + 0x9238], bl
mov eax, esi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x10
ret 8