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

Disassembly:
push 0xffffffffffffffff
push 0x41c78c
mov eax, dword fs:[0]
push eax
sub esp, 0x40
push ebx
push ebp
push esi
push edi
mov eax, dword [0xdb8624]
xor eax, esp
push eax
lea eax, [esp + 0x54]
mov dword fs:[0], eax
mov dword [esp + 0x28], ecx
lea ecx, [esp + 0x14]
call dword [0x41f408]
lea ecx, [esp + 0x18]
mov dword [esp + 0x5c], 0
call dword [0x41f408]
mov esi, dword [esp + 0x64]
mov eax, dword [esi]
mov eax, dword [eax + 4]
dec eax
push eax
lea ecx, [esp + 0x68]
push ecx
mov ecx, esi
mov byte [esp + 0x64], 1
call dword [0x41f320]
mov ax, word [eax]
mov ebp, dword [0x41f154]
mov ebx, dword [0x41f31c]
cmp ax, 0x2f
jne 0x40dd20
mov edx, dword [esi]
mov eax, dword [edx + 4]
dec eax
push eax
lea eax, [esp + 0x68]
push eax
mov ecx, esi
call ebx
push eax
lea ecx, [esp + 0x18]
call dword [0x41f204]
lea ecx, [esp + 0x64]
call dword [0x41f508]
jmp 0x40dd27
push esi
lea ecx, [esp + 0x18]
call ebp
mov edi, dword [esp + 0x68]
mov ecx, dword [edi]
mov eax, dword [ecx + 4]
dec eax
push eax
lea edx, [esp + 0x68]
push edx
mov ecx, edi
call dword [0x41f320]
cmp word [eax], 0x2f
jne 0x40dd6c
mov eax, dword [edi]
mov eax, dword [eax + 4]
dec eax
push eax
lea ecx, [esp + 0x68]
push ecx
mov ecx, edi
call ebx
push eax
lea ecx, [esp + 0x1c]
call dword [0x41f204]
lea ecx, [esp + 0x64]
call dword [0x41f508]
jmp 0x40dd73
push edi
lea ecx, [esp + 0x1c]
call ebp
mov ebp, dword [0x41f23c]
lea edx, [esp + 0x14]
push edx
lea ecx, [esp + 0x28]
call ebp
lea ecx, [esp + 0x24]
mov byte [esp + 0x5c], 2
call dword [0x41f318]
test al, al
je 0x40e069
lea eax, [esp + 0x14]
push eax
lea ecx, [esp + 0x24]
call dword [0x41f158]
push ecx
mov eax, esp
mov dword [eax], 0xffffffff
mov dword [esp + 0x68], esp
mov eax, 0x6303
push eax
lea ecx, [esp + 0x24]
push ecx
lea ecx, [esp + 0x2c]
mov byte [esp + 0x68], 3
call dword [0x41f314]
lea edx, [esp + 0x1c]
push edx
lea ecx, [esp + 0x48]
mov byte [esp + 0x60], 4
call fcn.0040b490
mov eax, dword [esp + 0x44]
mov ecx, dword [eax + 8]
lea esi, [eax + ecx*4 + 0x10]
mov dword [esp + 0x48], esi
mov edx, dword [eax + 0xc]
lea eax, [eax + edx*4 + 0x10]
mov dword [esp + 0x4c], eax
mov eax, 1
mov dword [esp + 0x50], eax
mov byte [esp + 0x5c], 5
cmp esi, dword [esp + 0x4c]
je 0x40dfa7
test eax, eax
je 0x40df93
push ecx
mov byte [esp + 0x30], 0x2f
mov edx, dword [esp + 0x30]
mov ecx, esp
mov dword [esp + 0x44], esp
push edx
call dword [0x41f308]
lea eax, [esp + 0x18]
push eax
lea ecx, [esp + 0x38]
push ecx
call fcn.004059f0
push esi
push eax
lea edx, [esp + 0x7c]
push edx
mov byte [esp + 0x74], 6
call fcn.00401000
add esp, 0x18
lea ecx, [esp + 0x30]
mov byte [esp + 0x5c], 8
call dword [0x41f508]
push ecx
mov byte [esp + 0x38], 0x2f
mov eax, dword [esp + 0x38]
mov ecx, esp
mov dword [esp + 0x44], esp
push eax
call dword [0x41f308]
lea ecx, [esp + 0x1c]
push ecx
lea edx, [esp + 0x40]
push edx
call fcn.004059f0
push esi
push eax
lea eax, [esp + 0x78]
push eax
mov byte [esp + 0x74], 9
call fcn.00401000
add esp, 0x18
lea ecx, [esp + 0x38]
mov byte [esp + 0x5c], 0xb
call dword [0x41f508]
lea ecx, [esp + 0x68]
push ecx
lea ecx, [esp + 0x40]
call ebp
mov ecx, eax
mov byte [esp + 0x5c], 0xc
call dword [0x41f318]
lea ecx, [esp + 0x3c]
mov bl, al
mov byte [esp + 0x5c], 0xb
call dword [0x41f234]
test bl, bl
je 0x40df01
lea edx, [esp + 0x64]
push edx
lea ecx, [esp + 0x24]
call dword [0x41f2d4]
lea eax, [esp + 0x64]
push eax
lea ecx, [esp + 0x6c]
push ecx
mov ecx, dword [esp + 0x30]
call fcn.0040dc80
jmp 0x40df6f
mov edx, dword [esp + 0x28]
mov eax, dword [edx + 0x90]
mov ecx, dword [eax + 8]
mov edx, dword [eax + 0xc]
lea edi, [eax + ecx*4 + 0x10]
lea ebx, [eax + edx*4 + 0x10]
cmp edi, ebx
je 0x40df3c
lea ecx, [ecx]
push esi
push edi
call dword [0x41f208]
add esp, 8
test al, al
jne 0x40df38
add edi, 4
cmp edi, ebx
jne 0x40df20
jmp 0x40df3c
cmp edi, ebx
jne 0x40df6f
lea eax, [esp + 0x64]
push eax
call dword [0x41f428]
add esp, 4
test al, al
je 0x40df5c
lea ecx, [esp + 0x64]
push ecx
call dword [0x41f1f0]
add esp, 4
lea edx, [esp + 0x64]
push edx
lea eax, [esp + 0x6c]
push eax
call dword [0x41f310]
add esp, 8
lea ecx, [esp + 0x64]
mov byte [esp + 0x5c], 8
call dword [0x41f508]
lea ecx, [esp + 0x68]
mov byte [esp + 0x5c], 5
call dword [0x41f508]
mov esi, dword [esp + 0x48]
xor eax, eax
add esi, 4
xor eax, 1
mov dword [esp + 0x48], esi
mov dword [esp + 0x50], eax
jne 0x40de0c
mov eax, dword [esp + 0x44]
mov ecx, dword [eax]
mov ebp, dword [0x41f2a8]
mov byte [esp + 0x5c], 4
test ecx, ecx
je 0x40dfd3
cmp ecx, 0xffffffff
je 0x40e005
or ecx, 0xffffffff
lock xadd dword [eax], ecx
setne al
test al, al
jne 0x40e005
mov eax, dword [esp + 0x44]
mov edx, dword [eax + 0xc]
mov ecx, dword [eax + 8]
lea esi, [eax + edx*4 + 0x10]
lea edi, [eax + ecx*4 + 0x10]
mov ebx, eax
cmp edi, esi
je 0x40dfff
jmp 0x40dff0
sub esi, 4
mov ecx, esi
call dword [0x41f508]
cmp esi, edi
jne 0x40dff0
push ebx
call ebp
add esp, 4
mov eax, dword [esp + 0x1c]
mov ecx, dword [eax]
mov byte [esp + 0x5c], 3
test ecx, ecx
je 0x40e02b
cmp ecx, 0xffffffff
je 0x40e055
or edx, 0xffffffff
lock xadd dword [eax], edx
setne al
test al, al
jne 0x40e055
mov eax, dword [esp + 0x1c]
mov ecx, dword [eax + 0xc]
mov edx, dword [eax + 8]
lea esi, [eax + ecx*4 + 0x10]
lea edi, [eax + edx*4 + 0x10]
mov ebx, eax
cmp edi, esi
je 0x40e04f
nop
sub esi, 4
mov ecx, esi
call dword [0x41f508]
cmp esi, edi
jne 0x40e040
push ebx
call ebp
add esp, 4
lea ecx, [esp + 0x20]
mov byte [esp + 0x5c], 2
call dword [0x41f450]
jmp 0x40e115
lea eax, [esp + 0x38]
push eax
lea ecx, [esp + 0x28]
call dword [0x41f30c]
mov edi, eax
push ecx
mov byte [esp + 0x6c], 0x2f
mov edx, dword [esp + 0x6c]
mov ecx, esp
mov dword [esp + 0x44], esp
push edx
mov byte [esp + 0x64], 0xd
call dword [0x41f308]
lea eax, [esp + 0x1c]
push eax
lea ecx, [esp + 0x44]
push ecx
call fcn.004059f0
push edi
push eax
lea edx, [esp + 0x78]
push edx
mov byte [esp + 0x74], 0xe
call fcn.00401000
add esp, 0x18
lea ecx, [esp + 0x3c]
mov byte [esp + 0x5c], 0x10
call dword [0x41f508]
lea ecx, [esp + 0x38]
mov byte [esp + 0x5c], 0x11
call dword [0x41f508]
lea eax, [esp + 0x64]
push eax
call dword [0x41f428]
add esp, 4
test al, al
je 0x40e0f7
lea ecx, [esp + 0x64]
push ecx
call dword [0x41f1f0]
add esp, 4
lea edx, [esp + 0x64]
push edx
push esi
call dword [0x41f310]
add esp, 8
lea ecx, [esp + 0x64]
mov byte [esp + 0x5c], 2
call dword [0x41f508]
lea ecx, [esp + 0x24]
mov byte [esp + 0x5c], 1
call dword [0x41f234]
lea ecx, [esp + 0x18]
mov byte [esp + 0x5c], 0
call dword [0x41f508]
lea ecx, [esp + 0x14]
mov dword [esp + 0x5c], 0xffffffff
call dword [0x41f508]
mov al, 1
mov ecx, dword [esp + 0x54]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x4c
ret 8