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

Disassembly:
push 0xffffffffffffffff
push 0x5ff410
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x50
push ebx
push ebp
push esi
mov ebp, ecx
push edi
mov dword [esp + 0x10], ebp
lea ecx, [esp + 0x70]
mov dword [esp + 0x68], 3
call fcn.0045a7a0
mov ecx, eax
call fcn.0045a7f0
mov eax, dword [eax]
mov eax, dword [eax - 0xc]
xor ebx, ebx
cmp eax, ebx
je 0x49edc8
mov edi, dword [esp + 0x78]
mov esi, dword [esp + 0x7c]
cmp edi, esi
jg 0x49edc8
push 0xd
lea ecx, [esp + 0x74]
call fcn.0049a740
push 0x627bfc
push 0x627064
lea ecx, [esp + 0x78]
call fcn.00418720
mov ecx, dword [esp + 0x80]
cmp dword [ecx - 0xc], ebx
jne 0x49e8e4
push 0x6272bc
lea ecx, [esp + 0x84]
call fcn.00401e80
push 0x2a
lea ecx, [esp + 0x84]
call fcn.00429760
lea ecx, [esp + 0x2c]
call fcn.00496780
lea edx, [esp + 0x70]
push edx
lea ecx, [esp + 0x30]
mov byte [esp + 0x6c], 4
call fcn.004189d0
mov al, byte [esp + 0x74]
lea ecx, [esp + 0x80]
push ecx
lea ecx, [esp + 0x38]
mov byte [esp + 0x34], al
call fcn.004044c0
lea edx, [esp + 0x84]
push edx
lea ecx, [esp + 0x3c]
call fcn.004044c0
lea eax, [esp + 0x88]
push eax
lea ecx, [esp + 0x40]
call fcn.004044c0
mov eax, dword [esp + 0x94]
mov ecx, dword [esp + 0x8c]
mov edx, dword [esp + 0x90]
mov dword [esp + 0x48], eax
mov eax, dword [esp + 0xa0]
cmp eax, ebx
mov dword [esp + 0x40], ecx
mov ecx, dword [esp + 0x98]
mov dword [esp + 0x44], edx
mov edx, dword [esp + 0x9c]
mov dword [esp + 0x4c], ecx
mov dword [esp + 0x50], edx
mov dword [esp + 0x54], edi
mov dword [esp + 0x58], esi
jge 0x49e996
mov eax, dword [ebp + 0xc]
mov dword [esp + 0x5c], eax
lea eax, [esp + 0x2c]
lea ecx, [ebp + 8]
push eax
call fcn.0049b0c0
mov esi, eax
mov eax, dword [ebp + 0x1c]
cmp eax, ebx
mov dword [esp + 0x9c], esi
jne 0x49e9ef
mov ecx, dword [esp + 0x7c]
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x20], ebx
mov dword [esp + 0x24], ebx
mov dword [esp + 0x28], ebx
mov dword [esp + 0x14], edi
mov dword [esp + 0x18], ecx
push esi
lea ecx, [esp + 0x20]
mov byte [esp + 0x6c], 5
call fcn.00498930
lea edx, [esp + 0x14]
push edx
lea ecx, [ebp + 0x18]
jmp 0x49ed8e
add ebp, 0x18
cmp dword [ebp + 4], ebx
ja 0x49ea01
push 0x80070057
call fcn.00401480
mov edx, dword [ebp]
mov ecx, dword [esp + 0x7c]
cmp ecx, dword [edx]
jg 0x49ea47
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x20], ebx
mov dword [esp + 0x24], ebx
mov dword [esp + 0x28], ebx
mov dword [esp + 0x14], edi
mov dword [esp + 0x18], ecx
push esi
lea ecx, [esp + 0x20]
mov byte [esp + 0x6c], 6
call fcn.00498930
push 1
lea eax, [esp + 0x18]
push eax
push ebx
mov ecx, ebp
call fcn.0049ba80
jmp 0x49ed93
add eax, 0xffffffff
push eax
mov ecx, ebp
call fcn.00498430
cmp edi, dword [eax + 4]
jl 0x49ea8c
mov ecx, dword [esp + 0x7c]
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x20], ebx
mov dword [esp + 0x24], ebx
mov dword [esp + 0x28], ebx
mov dword [esp + 0x14], edi
mov dword [esp + 0x18], ecx
push esi
lea ecx, [esp + 0x20]
mov byte [esp + 0x6c], 7
call fcn.00498930
lea edx, [esp + 0x14]
push edx
jmp 0x49ed8c
push ebx
mov ecx, ebp
call fcn.00498430
cmp edi, dword [eax]
jge 0x49eb03
push ebx
mov ecx, ebp
call fcn.00498430
mov eax, dword [eax]
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x20], ebx
mov dword [esp + 0x24], ebx
mov dword [esp + 0x28], ebx
mov dword [esp + 0x14], edi
mov dword [esp + 0x18], eax
push esi
lea ecx, [esp + 0x20]
mov byte [esp + 0x6c], 8
call fcn.00498930
push ebx
mov ecx, ebp
call fcn.00498430
mov eax, dword [eax]
push 1
lea ecx, [esp + 0x18]
push ecx
push ebx
mov ecx, ebp
mov dword [esp + 0x84], eax
call fcn.0049ba80
mov eax, dword [esp + 0x1c]
cmp eax, ebx
mov byte [esp + 0x68], 4
je 0x49eaff
push eax
call fcn.005bfb1a
add esp, 4
mov edi, dword [esp + 0x78]
mov edx, dword [esp + 0x10]
xor eax, eax
cmp dword [edx + 0x1c], ebx
mov dword [esp + 0x74], eax
jbe 0x49ed17
mov dword [esp + 0xa0], ebx
lea ecx, [ecx]
cmp eax, dword [ebp + 4]
jae 0x49e9f7
mov esi, dword [ebp]
add esi, dword [esp + 0xa0]
mov ecx, dword [esi + 4]
cmp edi, ecx
jge 0x49ecf0
mov eax, dword [esi]
cmp dword [esp + 0x7c], eax
jle 0x49ed10
cmp edi, eax
jle 0x49ebac
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x20], ebx
mov dword [esp + 0x24], ebx
mov dword [esp + 0x28], ebx
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], edi
lea eax, [esi + 8]
push eax
lea ecx, [esp + 0x20]
mov byte [esp + 0x6c], 9
call fcn.00499550
mov edx, dword [esp + 0x74]
push 1
lea ecx, [esp + 0x18]
push ecx
push edx
mov ecx, ebp
mov dword [esi], edi
call fcn.0049ba80
mov eax, dword [esp + 0x1c]
cmp eax, ebx
mov byte [esp + 0x68], 4
je 0x49ecf0
push eax
call fcn.005bfb1a
add esp, 4
jmp 0x49ecf0
cmp ecx, dword [esp + 0x7c]
jg 0x49ec13
mov eax, dword [esi + 0xc]
xor edi, edi
cmp eax, ebx
mov dword [esp + 0x8c], eax
jl 0x49ec0f
jmp 0x49ebcb
mov eax, dword [esp + 0x8c]
cmp edi, eax
je 0x49ebf0
push edi
lea ecx, [esi + 8]
call fcn.004983f0
mov eax, dword [eax]
mov ecx, dword [esp + 0x10]
push eax
add ecx, 8
call fcn.00498410
mov ecx, dword [esp + 0x5c]
cmp ecx, dword [eax + 0x30]
jge 0x49ec03
mov edx, dword [esp + 0x9c]
push 1
push edx
push edi
lea ecx, [esi + 8]
call fcn.004995a0
add edi, 1
cmp edi, dword [esp + 0x8c]
jle 0x49ebc4
mov edi, dword [esp + 0x78]
mov eax, dword [esi]
mov ecx, dword [esp + 0x7c]
cmp eax, ecx
jge 0x49ecf0
cmp ecx, dword [esi + 4]
jge 0x49ecf0
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x20], ebx
mov dword [esp + 0x24], ebx
mov dword [esp + 0x28], ebx
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], ecx
lea eax, [esi + 8]
push eax
lea ecx, [esp + 0x20]
mov byte [esp + 0x6c], 0xa
call fcn.00499550
mov eax, dword [esi + 0xc]
xor edi, edi
cmp eax, ebx
mov dword [esp + 0x8c], eax
jl 0x49ecbd
jmp 0x49ec77
mov eax, dword [esp + 0x8c]
cmp edi, eax
je 0x49ec9d
push edi
lea ecx, [esp + 0x20]
call fcn.004983f0
mov ecx, dword [eax]
push ecx
mov ecx, dword [esp + 0x14]
add ecx, 8
call fcn.00498410
mov edx, dword [esp + 0x5c]
cmp edx, dword [eax + 0x30]
jge 0x49ecb1
mov eax, dword [esp + 0x9c]
push 1
push eax
push edi
lea ecx, [esp + 0x28]
call fcn.004995a0
add edi, 1
cmp edi, dword [esp + 0x8c]
jle 0x49ec70
mov ecx, dword [esp + 0x7c]
mov eax, dword [esp + 0x74]
push 1
lea edx, [esp + 0x18]
push edx
mov dword [esi], ecx
push eax
mov ecx, ebp
call fcn.0049ba80
mov eax, dword [esp + 0x1c]
cmp eax, ebx
mov byte [esp + 0x68], 4
je 0x49ecec
push eax
call fcn.005bfb1a
add esp, 4
mov edi, dword [esp + 0x78]
mov eax, dword [esp + 0x74]
mov ecx, dword [esp + 0x10]
add dword [esp + 0xa0], 0x18
add eax, 1
cmp eax, dword [ecx + 0x1c]
mov dword [esp + 0x74], eax
jb 0x49eb20
mov esi, dword [esp + 0x9c]
mov edx, dword [esp + 0x10]
mov edx, dword [edx + 0x1c]
lea eax, [edx - 1]
cmp eax, dword [ebp + 4]
jb 0x49ed30
push 0x80070057
call fcn.00401480
mov ecx, dword [ebp]
lea eax, [eax + eax*2]
lea eax, [ecx + eax*8]
mov ecx, dword [esp + 0x7c]
cmp ecx, dword [eax + 4]
jle 0x49eda4
lea eax, [edx - 1]
cmp eax, dword [ebp + 4]
jb 0x49ed54
push 0x80070057
call fcn.00401480
lea edx, [eax + eax*2]
mov eax, dword [ebp]
lea eax, [eax + edx*8]
mov eax, dword [eax + 4]
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x20], ebx
mov dword [esp + 0x24], ebx
mov dword [esp + 0x28], ebx
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], ecx
push esi
lea ecx, [esp + 0x20]
mov byte [esp + 0x6c], 0xb
call fcn.00498930
lea ecx, [esp + 0x14]
push ecx
mov ecx, ebp
call fcn.0049b140
mov eax, dword [esp + 0x1c]
cmp eax, ebx
je 0x49eda4
push eax
call fcn.005bfb1a
add esp, 4
lea ecx, [esp + 0x2c]
call fcn.00496810
mov eax, dword [esp + 0x70]
add eax, 0xfffffff0
mov byte [esp + 0x68], 2
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jmp 0x49ede1
mov eax, dword [esp + 0x70]
add eax, 0xfffffff0
mov byte [esp + 0x68], 2
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x49eded
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x80]
add eax, 0xfffffff0
or edx, 0xffffffff
lea ecx, [eax + 0xc]
mov byte [esp + 0x68], 1
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x49ee15
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x84]
add eax, 0xfffffff0
or edx, 0xffffffff
lea ecx, [eax + 0xc]
mov byte [esp + 0x68], bl
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x49ee3c
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x88]
add eax, 0xfffffff0
or edx, 0xffffffff
lea ecx, [eax + 0xc]
mov dword [esp + 0x68], edx
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x49ee63
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [esp + 0x60]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x5c
ret 0x34