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

Disassembly:
push 0xffffffffffffffff
push 0x45e7a8
mov eax, dword fs:[0]
push eax
sub esp, 0x58
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4c003c]
xor eax, esp
push eax
lea eax, [esp + 0x6c]
mov dword fs:[0], eax
mov esi, ecx
mov ebp, dword [esp + 0x84]
mov ebx, dword [esp + 0x80]
mov eax, dword [ebx]
xor edi, edi
mov dword [esp + 0x1c], edi
cmp dword [eax + 8], edi
jne 0x405de0
mov ecx, dword [ebp]
cmp dword [ecx + 8], edi
je 0x40631a
mov eax, dword [0x46a708]
mov dword [esp + 0x18], eax
mov edx, 1
lock xadd dword [eax], edx
mov eax, dword [ebx]
mov dword [esp + 0x74], edi
cmp dword [eax + 8], edi
jne 0x405e41
push esi
lea ecx, [esp + 0x24]
push ebp
push ecx
call fcn.00405a70
add esp, 0xc
push eax
lea ecx, [esp + 0x1c]
mov byte [esp + 0x78], 1
call fcn.00403e90
mov eax, dword [esp + 0x20]
mov byte [esp + 0x74], 0
cmp eax, edi
je 0x405e41
or edx, 0xffffffff
lock xadd dword [eax], edx
jne 0x405e41
mov eax, dword [esp + 0x20]
push 4
push eax
call dword [0x46a6f8]
add esp, 8
mov ecx, dword [ebp]
cmp dword [ecx + 8], edi
jne 0x405e8d
push esi
lea edx, [esp + 0x24]
push ebx
push edx
call fcn.00405a70
add esp, 0xc
push eax
lea ecx, [esp + 0x1c]
mov byte [esp + 0x78], 2
call fcn.00403e90
mov eax, dword [esp + 0x20]
mov byte [esp + 0x74], 0
cmp eax, edi
je 0x405e8d
or ecx, 0xffffffff
lock xadd dword [eax], ecx
jne 0x405e8d
mov edx, dword [esp + 0x20]
push 4
push edx
call dword [0x46a6f8]
add esp, 8
lea eax, [esp + 0x24]
push eax
mov ecx, esi
call dword [0x46b8d8]
push eax
lea ecx, [esp + 0x40]
push ecx
mov byte [esp + 0x7c], 3
call fcn.004045b0
add esp, 8
mov eax, dword [esp + 0x24]
mov byte [esp + 0x74], 5
cmp eax, edi
je 0x405ed3
or edx, 0xffffffff
lock xadd dword [eax], edx
jne 0x405ed3
mov eax, dword [esp + 0x24]
push 4
push eax
call dword [0x46a6f8]
add esp, 8
mov eax, dword [esp + 0x40]
mov ecx, eax
inc eax
mov dword [esp + 0x40], eax
test ecx, ecx
jne 0x405ef0
mov edx, dword [esp + 0x44]
cmp edx, dword [esp + 0x48]
je 0x405ef0
mov bl, 1
jmp 0x405ef2
xor bl, bl
test byte [esp + 0x1c], 2
je 0x405f1f
mov eax, dword [esp + 0x30]
and dword [esp + 0x1c], 0xfffffffd
test eax, eax
je 0x405f1f
or ecx, 0xffffffff
lock xadd dword [eax], ecx
jne 0x405f1f
mov edx, dword [esp + 0x30]
push 4
push edx
call dword [0x46a6f8]
add esp, 8
test bl, bl
je 0x4063e9
test byte [esp + 0x1c], 4
mov eax, dword [esp + 0x44]
mov dword [esp + 0x20], eax
je 0x405f5c
mov eax, dword [esp + 0x34]
and dword [esp + 0x1c], 0xfffffffb
test eax, eax
je 0x405f5c
or ecx, 0xffffffff
lock xadd dword [eax], ecx
jne 0x405f5c
mov edx, dword [esp + 0x34]
push 4
push edx
call dword [0x46a6f8]
add esp, 8
test byte [esp + 0x1c], 0x10
mov esi, dword [esp + 0x40]
je 0x405f8d
mov eax, dword [esp + 0x38]
and dword [esp + 0x1c], 0xffffffef
test eax, eax
je 0x405f8d
or ecx, 0xffffffff
lock xadd dword [eax], ecx
jne 0x405f8d
mov edx, dword [esp + 0x38]
push 4
push edx
call dword [0x46a6f8]
add esp, 8
test esi, esi
je 0x40628e
mov eax, dword [esp + 0x20]
mov ebx, dword [eax]
cmp ebx, dword [eax + 8]
jg 0x406252
mov eax, dword [esp + 0x20]
mov ebp, dword [eax + 4]
cmp ebp, dword [eax + 0xc]
jg 0x406244
mov ecx, dword [esp + 0x88]
mov eax, dword [ecx + 4]
mov ecx, dword [ecx]
lea edx, [ecx + ebx]
mov byte [esp + 0x16], 0
mov byte [esp + 0x15], 0
mov byte [esp + 0x17], 0
lea esi, [eax + ebp]
test edx, edx
jl 0x4062cb
test esi, esi
jl 0x4062cb
mov edi, dword [esp + 0x7c]
cmp edx, dword [edi + 0x14]
jge 0x4062cb
cmp esi, dword [edi + 0x18]
jge 0x4062cb
add eax, ebp
add ecx, ebx
push eax
push ecx
mov ecx, edi
call dword [0x46be64]
mov edi, eax
cmp dword [edi], 0
je 0x40633a
mov eax, dword [esp + 0x80]
push eax
lea ecx, [esp + 0x50]
push ecx
call fcn.00404610
add esp, 8
mov ecx, dword [esp + 0x54]
mov eax, dword [esp + 0x50]
mov byte [esp + 0x74], 6
mov edx, eax
inc eax
mov dword [esp + 0x50], eax
test edx, edx
jne 0x4060c8
cmp ecx, dword [esp + 0x58]
je 0x4060c8
mov esi, dword [ecx]
test eax, eax
je 0x4060b8
test ebx, ebx
jl 0x40639f
test ebp, ebp
jl 0x40639f
cmp ebx, dword [esi + 0x14]
jge 0x40639f
cmp ebp, dword [esi + 0x18]
jge 0x40639f
push ebp
push ebx
mov ecx, esi
call dword [0x46be64]
mov ecx, dword [eax]
test ecx, ecx
je 0x4060ad
mov byte [esp + 0x16], 1
cmp dword [edi], ecx
jne 0x4060ad
mov cl, byte [edi + 4]
cmp cl, byte [eax + 4]
jne 0x4060ad
mov dl, byte [edi + 5]
cmp dl, byte [eax + 5]
jne 0x4060ad
mov cl, byte [edi + 6]
cmp cl, byte [eax + 6]
jne 0x4060ad
mov byte [esp + 0x15], 1
mov eax, dword [esp + 0x50]
dec eax
mov dword [esp + 0x50], eax
jmp 0x406051
mov ecx, dword [esp + 0x54]
add ecx, 4
mov dword [esp + 0x54], ecx
jmp 0x406036
mov eax, dword [esp + 0x4c]
mov byte [esp + 0x74], 5
test eax, eax
je 0x4060ee
or edx, 0xffffffff
lock xadd dword [eax], edx
jne 0x4060ee
mov eax, dword [esp + 0x4c]
push 4
push eax
call dword [0x46a6f8]
add esp, 8
mov ecx, dword [esp + 0x84]
push ecx
lea edx, [esp + 0x60]
push edx
call fcn.00404610
add esp, 8
mov ecx, dword [esp + 0x64]
mov eax, dword [esp + 0x60]
mov byte [esp + 0x74], 7
mov edx, eax
inc eax
mov dword [esp + 0x60], eax
test edx, edx
jne 0x406182
cmp ecx, dword [esp + 0x68]
je 0x406182
mov esi, dword [ecx]
test eax, eax
je 0x406175
push ebp
push ebx
mov ecx, esi
call dword [0x46be00]
test al, al
je 0x4063c0
push ebp
push ebx
mov ecx, esi
call dword [0x46be64]
mov ecx, dword [eax]
test ecx, ecx
je 0x40616a
cmp dword [edi], ecx
jne 0x40616a
mov cl, byte [edi + 4]
cmp cl, byte [eax + 4]
jne 0x40616a
mov dl, byte [edi + 5]
cmp dl, byte [eax + 5]
jne 0x40616a
mov cl, byte [edi + 6]
cmp cl, byte [eax + 6]
jne 0x40616a
mov byte [esp + 0x17], 1
mov eax, dword [esp + 0x60]
dec eax
mov dword [esp + 0x60], eax
jmp 0x406123
mov ecx, dword [esp + 0x64]
add ecx, 4
mov dword [esp + 0x64], ecx
jmp 0x406110
mov eax, dword [esp + 0x5c]
mov byte [esp + 0x74], 5
test eax, eax
je 0x4061a8
or edx, 0xffffffff
lock xadd dword [eax], edx
jne 0x4061a8
mov eax, dword [esp + 0x5c]
push 4
push eax
call dword [0x46a6f8]
add esp, 8
mov ecx, dword [esp + 0x80]
mov edx, dword [ecx]
cmp dword [edx + 8], 0
je 0x40622b
mov eax, dword [esp + 0x84]
mov ecx, dword [eax]
cmp dword [ecx + 8], 0
jne 0x406219
cmp byte [esp + 0x15], 0
jne 0x406236
cmp byte [esp + 0x16], 0
jne 0x40633a
mov eax, dword [esp + 0x18]
mov edx, dword [eax + 8]
lea esi, [eax + 0x10]
lea eax, [eax + edx*8 + 0x10]
cmp eax, esi
je 0x406236
mov ecx, dword [edi]
lea esp, [esp]
sub eax, 8
cmp dword [eax], ecx
jne 0x406213
mov dl, byte [eax + 4]
cmp dl, byte [edi + 4]
jne 0x406213
mov dl, byte [eax + 5]
cmp dl, byte [edi + 5]
jne 0x406213
mov dl, byte [eax + 6]
cmp dl, byte [edi + 6]
je 0x40633a
cmp eax, esi
jne 0x4061f0
jmp 0x406236
cmp byte [esp + 0x15], 0
jne 0x40622b
cmp byte [esp + 0x16], 0
jne 0x40633a
cmp byte [esp + 0x17], 0
jne 0x40633a
mov eax, dword [esp + 0x20]
inc ebp
cmp ebp, dword [eax + 0xc]
jle 0x405fb4
mov ecx, dword [esp + 0x20]
inc ebx
cmp ebx, dword [ecx + 8]
jle 0x405fa4
dec dword [esp + 0x40]
test byte [esp + 0x1c], 8
je 0x405f5c
and dword [esp + 0x1c], 0xfffffff7
cmp dword [esp + 0x28], 0
je 0x405f5c
mov edx, dword [esp + 0x28]
or eax, 0xffffffff
lock xadd dword [edx], eax
jne 0x405f5c
mov ecx, dword [esp + 0x28]
push 4
push ecx
jmp 0x405f53
add dword [esp + 0x44], 0x10
test byte [esp + 0x1c], 1
je 0x405ed3
and dword [esp + 0x1c], 0xfffffffe
cmp dword [esp + 0x2c], 0
je 0x405ed3
mov edx, dword [esp + 0x2c]
or eax, 0xffffffff
lock xadd dword [edx], eax
jne 0x405ed3
mov ecx, dword [esp + 0x2c]
push 4
push ecx
jmp 0x405eca
mov eax, dword [esp + 0x3c]
mov byte [esp + 0x74], 0
test eax, eax
je 0x4062f1
or edx, 0xffffffff
lock xadd dword [eax], edx
jne 0x4062f1
mov eax, dword [esp + 0x3c]
push 4
push eax
call dword [0x46a6f8]
add esp, 8
mov eax, dword [esp + 0x18]
mov dword [esp + 0x74], 0xffffffff
test eax, eax
je 0x40631a
or ecx, 0xffffffff
lock xadd dword [eax], ecx
jne 0x40631a
mov edx, dword [esp + 0x18]
push 4
push edx
call dword [0x46a6f8]
add esp, 8
xor al, al
mov ecx, dword [esp + 0x6c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x64
ret
push edx
call dword [0x46a6f8]
add esp, 8
mov eax, dword [esp + 0x3c]
mov byte [esp + 0x74], 0
test eax, eax
je 0x406360
or ecx, 0xffffffff
lock xadd dword [eax], ecx
jne 0x406360
mov edx, dword [esp + 0x3c]
push 4
push edx
call dword [0x46a6f8]
add esp, 8
mov eax, dword [esp + 0x18]
mov dword [esp + 0x74], 0xffffffff
test eax, eax
je 0x40631a
or ecx, 0xffffffff
lock xadd dword [eax], ecx
jne 0x40631a
mov edx, dword [esp + 0x18]
push 4
push edx
call dword [0x46a6f8]
add esp, 8
xor al, al
mov ecx, dword [esp + 0x6c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x64
ret
mov eax, dword [esp + 0x4c]
mov byte [esp + 0x74], 5
test eax, eax
je 0x40633a
or ecx, 0xffffffff
lock xadd dword [eax], ecx
jne 0x40633a
mov edx, dword [esp + 0x4c]
push 4
jmp 0x406330
mov eax, dword [esp + 0x5c]
mov byte [esp + 0x74], 5
test eax, eax
je 0x40633a
or ecx, 0xffffffff
lock xadd dword [eax], ecx
jne 0x40633a
mov edx, dword [esp + 0x5c]
push 4
jmp 0x406330
mov eax, dword [esp + 0x3c]
mov byte [esp + 0x74], 0
test eax, eax
je 0x40640f
or ecx, 0xffffffff
lock xadd dword [eax], ecx
jne 0x40640f
mov edx, dword [esp + 0x3c]
push 4
push edx
call dword [0x46a6f8]
add esp, 8
mov eax, dword [esp + 0x18]
mov dword [esp + 0x74], 0xffffffff
test eax, eax
je 0x406438
or ecx, 0xffffffff
lock xadd dword [eax], ecx
jne 0x406438
mov edx, dword [esp + 0x18]
push 4
push edx
call dword [0x46a6f8]
add esp, 8
mov al, 1
mov ecx, dword [esp + 0x6c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x64
ret