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

Disassembly:
push 0xffffffffffffffff
push 0x551b8c
mov eax, dword fs:[0]
push eax
sub esp, 0x38
push ebx
push ebp
push esi
push edi
mov eax, dword [0x5b2ae0]
xor eax, esp
push eax
lea eax, [esp + 0x4c]
mov dword fs:[0], eax
xor ebx, ebx
mov dword [esp + 0x1c], ebx
mov edi, 1
mov dword [esp + 0x54], edi
mov eax, dword [esp + 0x64]
cmp eax, ebx
jne 0x49a7e9
mov eax, dword [esp + 0x60]
mov dword [eax], ebx
jmp 0x49aa23
mov ecx, dword [eax + 0x18]
sub ecx, dword [eax + 0x14]
test ecx, 0xfffffffc
jne 0x49a81a
mov esi, dword [esp + 0x60]
mov ecx, eax
add eax, 4
mov dword [esi], ebx
mov byte [esp + 0x54], bl
dec dword [eax]
cmp dword [eax], ebx
mov dword [esp + 0x1c], edi
jg 0x49aa21
push edi
jmp 0x49aa1b
push 0x20
call fcn.004efbd8
add esp, 4
mov dword [esp + 0x20], eax
mov byte [esp + 0x54], 2
cmp eax, ebx
je 0x49a83d
push eax
call fcn.004351d0
mov dword [esp + 0x18], eax
jmp 0x49a843
mov dword [esp + 0x18], ebx
mov eax, ebx
mov dword [esp + 0x24], eax
cmp eax, ebx
je 0x49a84e
add dword [eax + 4], edi
mov byte [esp + 0x54], 3
mov ebx, dword [esp + 0x64]
lea ebp, [eax + 8]
add ebx, 8
mov eax, ebp
call fcn.004429d0
lea ecx, [esp + 0x30]
push ecx
call fcn.00448460
mov esi, dword [esp + 0x5c]
mov byte [esp + 0x54], 4
add esi, 0x78
lea ebx, [esp + 0x20]
lea edi, [esp + 0x30]
mov dword [esp + 0x20], esi
call fcn.004a1f80
mov edi, esi
mov esi, dword [esp + 0x64]
mov edx, dword [esi + 0x18]
sub edx, dword [esi + 0x14]
add esi, 8
sar edx, 2
dec edx
xor ebx, ebx
test edx, edx
jle 0x49a96a
jmp 0x49a8b0
mov eax, dword [esi + 0x10]
sub eax, dword [esi + 0xc]
sar eax, 2
cmp ebx, eax
jb 0x49a8c2
call fcn.005177ee
mov edx, dword [edi + 0x10]
sub edx, dword [edi + 0xc]
mov ecx, dword [esi + 0xc]
mov esi, dword [ecx + ebx*4]
sar edx, 2
cmp esi, edx
jb 0x49a8da
call fcn.005177ee
mov eax, dword [edi + 0xc]
mov eax, dword [eax + esi*4]
mov ecx, dword [esp + 0x5c]
push eax
call fcn.004fbf1a
mov ecx, dword [eax]
mov edx, dword [ecx]
mov eax, dword [edx + 4]
push 1
call eax
mov edi, eax
mov eax, dword [esp + 0x3c]
mov dword [esp + 0x20], edi
test eax, eax
jne 0x49a907
xor edx, edx
jmp 0x49a910
mov edx, dword [esp + 0x44]
sub edx, eax
sar edx, 2
mov ecx, dword [esp + 0x40]
mov esi, ecx
sub esi, eax
sar esi, 2
cmp esi, edx
jae 0x49a92c
mov eax, ecx
add eax, 4
mov dword [ecx], edi
mov dword [esp + 0x40], eax
jmp 0x49a950
mov esi, ecx
cmp eax, ecx
jbe 0x49a937
call fcn.005177ee
mov eax, dword [esp + 0x30]
push esi
push eax
lea ecx, [esp + 0x28]
push ecx
lea edx, [esp + 0x34]
push edx
lea eax, [esp + 0x40]
call fcn.004a2710
mov esi, dword [esp + 0x64]
mov eax, dword [esi + 0x18]
sub eax, dword [esi + 0x14]
add esi, 8
sar eax, 2
inc ebx
dec eax
cmp ebx, eax
jl 0x49a8b0
mov esi, dword [ebp + 0x10]
sub esi, dword [ebp + 0xc]
sar esi, 2
sub esi, 1
js 0x49a9a3
mov eax, ebp
call fcn.00442ac0
cmp dword [eax], 0
jg 0x49aa39
mov eax, dword [ebp + 0x10]
mov ecx, eax
sub ecx, dword [ebp + 0xc]
test ecx, 0xfffffffc
je 0x49a99e
add eax, 0xfffffffc
mov dword [ebp + 0x10], eax
sub esi, 1
jns 0x49a978
mov eax, dword [esp + 0x3c]
mov esi, dword [esp + 0x60]
mov dword [esi], 0
mov dword [esp + 0x1c], 1
test eax, eax
je 0x49a9c6
push eax
call fcn.004efc12
add esp, 4
mov ecx, dword [esp + 0x30]
xor eax, eax
push ecx
mov dword [esp + 0x40], eax
mov dword [esp + 0x44], eax
mov dword [esp + 0x48], eax
call fcn.004efc12
mov ecx, dword [esp + 0x1c]
add esp, 4
mov byte [esp + 0x54], 1
test ecx, ecx
je 0x49a9ff
dec dword [ecx + 4]
cmp dword [ecx + 4], 0
jg 0x49a9ff
mov edx, dword [ecx]
mov eax, dword [edx]
push 1
call eax
mov byte [esp + 0x54], 0
mov eax, dword [esp + 0x64]
test eax, eax
je 0x49aa21
dec dword [eax + 4]
mov ecx, eax
add eax, 4
cmp dword [eax], 0
jg 0x49aa21
push 1
mov edx, dword [ecx]
mov eax, dword [edx]
call eax
mov eax, esi
mov ecx, dword [esp + 0x4c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x44
ret 0xc
mov eax, ebp
call fcn.00442ac0
dec dword [eax]
mov edx, dword [esp + 0x40]
sub edx, dword [esp + 0x3c]
sar edx, 2
cmp esi, edx
jb 0x49aa56
call fcn.005177ee
mov eax, dword [esp + 0x3c]
mov esi, dword [eax + esi*4]
lea ecx, [ecx]
mov eax, ebp
call fcn.00442ac0
mov ecx, dword [esi + 0x10]
sub ecx, dword [esi + 0xc]
mov edi, dword [eax]
sar ecx, 2
cmp edi, ecx
jb 0x49aa7b
call fcn.005177ee
mov edx, dword [esi + 0xc]
mov edi, dword [edx + edi*4]
mov ecx, dword [esp + 0x5c]
push edi
call fcn.004fbf1a
mov ecx, dword [eax]
mov eax, dword [ecx]
mov edx, dword [eax + 4]
xor ebx, ebx
push ebx
call edx
mov esi, eax
cmp esi, ebx
je 0x49aabc
mov eax, dword [esi + 0x10]
sub eax, dword [esi + 0xc]
sar eax, 2
cmp eax, ebx
je 0x49aabc
dec eax
lea ebx, [esp + 0x20]
mov edi, ebp
mov dword [esp + 0x20], eax
call fcn.00442b30
jmp 0x49aa60
mov esi, dword [esp + 0x18]
mov edi, dword [esp + 0x60]
mov dword [edi], esi
cmp esi, ebx
je 0x49aacd
inc dword [esi + 4]
mov eax, dword [esp + 0x3c]
mov dword [esp + 0x1c], 1
cmp eax, ebx
je 0x49aae6
push eax
call fcn.004efc12
add esp, 4
mov eax, dword [esp + 0x30]
push eax
mov dword [esp + 0x40], ebx
mov dword [esp + 0x44], ebx
mov dword [esp + 0x48], ebx
call fcn.004efc12
add esp, 4
mov byte [esp + 0x54], 1
cmp esi, ebx
je 0x49ab1a
dec dword [esi + 4]
cmp dword [esi + 4], ebx
jg 0x49ab1a
mov edx, dword [esi]
mov eax, dword [edx]
push 1
mov ecx, esi
call eax
mov byte [esp + 0x54], 0
mov eax, dword [esp + 0x64]
cmp eax, ebx
je 0x49ab3b
dec dword [eax + 4]
mov ecx, eax
add eax, 4
cmp dword [eax], ebx
jg 0x49ab3b
mov edx, dword [ecx]
mov eax, dword [edx]
push 1
call eax
mov eax, edi
jmp 0x49aa23