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

Disassembly:
push 0xffffffffffffffff
push 0x4e8a7a
mov eax, dword fs:[0]
push eax
sub esp, 0x54
push ebx
push ebp
push esi
push edi
mov eax, dword [0x64a000]
xor eax, esp
push eax
lea eax, [esp + 0x68]
mov dword fs:[0], eax
xor ebx, ebx
mov dword [esp + 0x1c], ebx
mov edi, dword [esp + 0x7c]
mov edx, dword [edi]
cmp dword [edx + 4], ebx
jne 0x49dbe6
mov eax, dword [esp + 0x78]
mov dword [eax], edx
mov ecx, dword [edx]
test ecx, ecx
je 0x49dbd2
cmp ecx, 0xffffffff
je 0x49dbd2
mov ecx, 1
lock xadd dword [edx], ecx
mov ecx, dword [esp + 0x68]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x60
ret
lea ecx, [esp + 0x28]
call fcn.00466250
mov eax, 0x2f
mov dword [esp + 0x70], 1
mov word [esp + 0x2c], ax
mov eax, dword [edi]
mov dword [esp + 0x14], eax
mov ecx, dword [eax]
test ecx, ecx
je 0x49dc1b
cmp ecx, 0xffffffff
je 0x49dc1b
mov ecx, 1
lock xadd dword [eax], ecx
xor esi, esi
mov dword [esp + 0x30], 0x55f18c
mov dword [esp + 0x24], 0x55f18c
lea eax, [esp + 0x7c]
mov byte [esp + 0x70], 4
push eax
push edi
lea eax, [esp + 0x84]
push eax
lea ecx, [esp + 0x30]
call fcn.004658f0
or edi, 0xffffffff
lea esp, [esp]
test esi, esi
jne 0x49dc88
mov eax, dword [esp + 0x14]
mov cx, word [esp + 0x2c]
mov ebp, dword [eax + 4]
cmp ebp, 2
jl 0x49dcbd
mov edx, dword [eax + 0xc]
cmp word [edx + eax], cx
jne 0x49dcbd
cmp word [edx + eax + 2], cx
jne 0x49dcbd
push 1
push 2
push dword [esp + 0x34]
lea ecx, [esp + 0x20]
call fcn.0041a560
mov esi, eax
cmp esi, 0xffffffff
je 0x49dcdb
push 1
lea eax, [esi + 1]
push eax
push dword [esp + 0x34]
lea ecx, [esp + 0x20]
call fcn.0041a560
mov esi, eax
cmp esi, 0xffffffff
je 0x49dcdb
push esi
lea eax, [esp + 0x3c]
push eax
lea ecx, [esp + 0x1c]
call fcn.0041a920
mov ecx, eax
or ebx, 4
jmp 0x49dcfe
cmp ebp, 3
jl 0x49dc8d
mov edx, dword [eax + 0xc]
cmp word [edx + eax + 2], 0x3a
jne 0x49dc8d
cmp word [edx + eax + 4], cx
jne 0x49dc8d
mov esi, 2
jmp 0x49dc8d
mov eax, dword [esp + 0x14]
mov dword [esp + 0x3c], eax
mov ecx, dword [eax]
test ecx, ecx
je 0x49dcf7
cmp ecx, 0xffffffff
je 0x49dcf7
mov ecx, 1
lock xadd dword [eax], ecx
lea ecx, [esp + 0x3c]
or ebx, 2
mov eax, dword [ecx]
mov dword [esp + 0x20], eax
mov dword [esp + 0x1c], ebx
mov dword [ecx], 0x4ed20c
mov dword [esp + 0x70], 6
test bl, 4
je 0x49dd4f
mov eax, dword [esp + 0x38]
and ebx, 0xfffffffb
mov dword [esp + 0x1c], ebx
mov ecx, dword [eax]
test ecx, ecx
je 0x49dd42
cmp ecx, 0xffffffff
je 0x49dd4f
mov ecx, edi
lock xadd dword [eax], ecx
setne al
test al, al
jne 0x49dd4f
mov eax, dword [esp + 0x38]
push 4
push 2
push eax
call fcn.00413640
add esp, 0xc
mov byte [esp + 0x70], 7
test bl, 2
je 0x49dd89
mov eax, dword [esp + 0x3c]
and ebx, 0xfffffffd
mov dword [esp + 0x1c], ebx
mov ecx, dword [eax]
test ecx, ecx
je 0x49dd7c
cmp ecx, 0xffffffff
je 0x49dd89
mov ecx, edi
lock xadd dword [eax], ecx
setne cl
test cl, cl
jne 0x49dd89
push 4
push 2
push eax
call fcn.00413640
add esp, 0xc
lea eax, [esp + 0x20]
push eax
lea ecx, [esp + 0x34]
call fcn.0049cc60
test al, al
jne 0x49dfdb
lea eax, [esp + 0x20]
push eax
lea ecx, [esp + 0x2c]
call fcn.00467550
lea ecx, [esp + 0x28]
call fcn.004673f0
test al, al
je 0x49e0e5
lea eax, [esp + 0x18]
push eax
lea ecx, [esp + 0x2c]
call fcn.0049e180
lea eax, [esp + 0x18]
mov byte [esp + 0x70], 8
push eax
lea ecx, [esp + 0x50]
call fcn.004661b0
mov ecx, eax
mov byte [esp + 0x70], 9
call fcn.004673c0
lea ecx, [esp + 0x4c]
mov byte [esp + 0x70], 8
mov bl, al
call fcn.004667d0
test bl, bl
je 0x49deab
lea eax, [esp + 0x40]
push eax
lea ecx, [esp + 0x2c]
call fcn.004668f0
mov dword [esp + 0x58], eax
lea ecx, [esp + 0x60]
lea eax, [esp + 0x2c]
mov byte [esp + 0x70], 0xa
mov dword [esp + 0x5c], eax
lea eax, [esp + 0x58]
mov dword [esp + 0x60], eax
lea eax, [esp + 0x18]
mov dword [esp + 0x64], eax
lea eax, [esp + 0x34]
push eax
call fcn.0047c4e0
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x34]
mov dword [esp + 0x18], ecx
mov dword [esp + 0x34], eax
mov ecx, dword [eax]
test ecx, ecx
je 0x49de6c
cmp ecx, 0xffffffff
je 0x49de79
mov ecx, edi
lock xadd dword [eax], ecx
setne al
test al, al
jne 0x49de79
mov eax, dword [esp + 0x34]
push 4
push 2
push eax
call fcn.00413640
add esp, 0xc
mov eax, dword [esp + 0x40]
mov byte [esp + 0x70], 8
mov ecx, dword [eax]
test ecx, ecx
je 0x49de9e
cmp ecx, 0xffffffff
je 0x49deab
mov ecx, edi
lock xadd dword [eax], ecx
setne al
test al, al
jne 0x49deab
mov eax, dword [esp + 0x40]
push 4
push 2
push eax
call fcn.00413640
add esp, 0xc
cmp esi, 0xffffffff
je 0x49df2f
lea ecx, [esp + 0x28]
call fcn.004671c0
test al, al
je 0x49dedd
push 1
push dword [esp + 0x30]
lea ecx, [esp + 0x20]
call fcn.00419c00
test al, al
jne 0x49dedd
push dword [esp + 0x2c]
lea ecx, [esp + 0x1c]
call fcn.00417f90
push 0xffffffffffffffff
push esi
lea eax, [esp + 0x4c]
push eax
lea ecx, [esp + 0x20]
call fcn.0041ac80
push eax
lea ecx, [esp + 0x1c]
mov byte [esp + 0x74], 0xb
call fcn.00417e50
mov eax, dword [esp + 0x44]
mov byte [esp + 0x70], 8
mov ecx, dword [eax]
test ecx, ecx
je 0x49df22
cmp ecx, 0xffffffff
je 0x49df2f
mov ecx, edi
lock xadd dword [eax], ecx
setne al
test al, al
jne 0x49df2f
mov eax, dword [esp + 0x44]
push 4
push 2
push eax
call fcn.00413640
add esp, 0xc
lea eax, [esp + 0x18]
push eax
lea eax, [esp + 0x4c]
push eax
call fcn.004640c0
mov edx, dword [esp + 0x1c]
add esp, 8
mov ecx, dword [eax]
mov dword [esp + 0x14], ecx
mov dword [eax], edx
mov eax, dword [esp + 0x48]
mov ecx, dword [eax]
test ecx, ecx
je 0x49df6d
cmp ecx, 0xffffffff
je 0x49df7a
mov ecx, edi
lock xadd dword [eax], ecx
setne al
test al, al
jne 0x49df7a
mov eax, dword [esp + 0x48]
push 4
push 2
push eax
call fcn.00413640
add esp, 0xc
lea eax, [esp + 0x14]
xor esi, esi
push eax
lea ecx, [esp + 0x28]
call fcn.0049cc60
test al, al
jne 0x49e102
lea eax, [esp + 0x7c]
push eax
lea eax, [esp + 0x18]
push eax
lea eax, [esp + 0x58]
push eax
lea ecx, [esp + 0x30]
call fcn.004658f0
mov eax, dword [esp + 0x18]
mov ecx, dword [eax]
test ecx, ecx
je 0x49dfca
cmp ecx, 0xffffffff
je 0x49dfd7
mov ecx, edi
lock xadd dword [eax], ecx
setne al
test al, al
jne 0x49dfd7
mov eax, dword [esp + 0x18]
push 4
push 2
push eax
call fcn.00413640
add esp, 0xc
mov ebx, dword [esp + 0x1c]
mov eax, dword [esp + 0x20]
mov byte [esp + 0x70], 4
mov ecx, dword [eax]
test ecx, ecx
je 0x49e000
cmp ecx, 0xffffffff
je 0x49e00d
mov ecx, edi
lock xadd dword [eax], ecx
setne al
test al, al
jne 0x49e00d
mov eax, dword [esp + 0x20]
push 4
push 2
push eax
call fcn.00413640
add esp, 0xc
cmp esi, 0xffffffff
jne 0x49dc50
mov esi, dword [esp + 0x78]
lea eax, [esp + 0x14]
push eax
push esi
call fcn.004640c0
add esp, 8
or ebx, 1
mov dword [esp + 0x1c], ebx
mov ecx, dword [esp + 0x24]
mov eax, dword [ecx + 8]
lea edx, [ecx + 8]
mov byte [esp + 0x70], 3
test eax, eax
je 0x49e058
cmp eax, 0xffffffff
je 0x49e062
mov eax, edi
lock xadd dword [edx], eax
setne al
test al, al
jne 0x49e062
mov ecx, dword [esp + 0x24]
push 0x43ebc0
call fcn.00463550
mov ecx, dword [esp + 0x30]
mov eax, dword [ecx + 8]
lea edx, [ecx + 8]
mov byte [esp + 0x70], 2
test eax, eax
je 0x49e08b
cmp eax, 0xffffffff
je 0x49e095
mov eax, edi
lock xadd dword [edx], eax
setne al
test al, al
jne 0x49e095
mov ecx, dword [esp + 0x30]
push 0x43ebc0
call fcn.00463550
mov eax, dword [esp + 0x14]
mov ecx, dword [eax]
test ecx, ecx
je 0x49e0b4
cmp ecx, 0xffffffff
je 0x49e0c1
lock xadd dword [eax], edi
dec edi
setne al
test al, al
jne 0x49e0c1
mov eax, dword [esp + 0x14]
push 4
push 2
push eax
call fcn.00413640
add esp, 0xc
lea ecx, [esp + 0x28]
mov byte [esp + 0x70], 0
call fcn.004667d0
mov eax, esi
mov ecx, dword [esp + 0x68]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x60
ret
lea eax, [esp + 0x7c]
push eax
lea eax, [esp + 0x24]
push eax
lea eax, [esp + 0x5c]
push eax
lea ecx, [esp + 0x3c]
call fcn.004658f0
jmp 0x49dfdb
mov esi, dword [esp + 0x78]
or dword [esp + 0x1c], 1
mov eax, dword [esp + 0x18]
mov dword [esi], 0x4ed20c
mov ecx, dword [eax]
test ecx, ecx
je 0x49e131
cmp ecx, 0xffffffff
je 0x49e13e
mov ecx, edi
lock xadd dword [eax], ecx
setne al
test al, al
jne 0x49e13e
mov eax, dword [esp + 0x18]
push 4
push 2
push eax
call fcn.00413640
add esp, 0xc
mov eax, dword [esp + 0x20]
mov ecx, dword [eax]
test ecx, ecx
je 0x49e166
cmp ecx, 0xffffffff
je 0x49e02f
mov ecx, edi
lock xadd dword [eax], ecx
setne al
test al, al
jne 0x49e02f
mov eax, dword [esp + 0x20]
push 4
push 2
push eax
call fcn.00413640
add esp, 0xc
jmp 0x49e02f