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

Disassembly:
push 0xffffffffffffffff
push 0x6a18f0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x98
mov al, byte [esp + 2]
push ebx
push ebp
push esi
mov esi, ecx
mov byte [esp + 0x16], al
mov cl, byte [esp + 0xe]
lea edx, [esp + 0xf]
push edi
mov byte [esp + 0x17], cl
lea eax, [esp + 0x1a]
push edx
lea ecx, [esp + 0x1b]
push eax
push ecx
push 0x64
lea ecx, [esp + 0x44]
call fcn.00659dd0
mov dl, byte [esp + 0x13]
mov al, byte [esp + 0x13]
mov byte [esp + 0x19], dl
lea ecx, [esp + 0x16]
mov byte [esp + 0x18], al
lea edx, [esp + 0x19]
push ecx
lea eax, [esp + 0x1c]
push edx
xor ebx, ebx
push eax
push 0x64
lea ecx, [esp + 0x54]
mov dword [esp + 0xc0], ebx
call fcn.00659dd0
mov cl, byte [esp + 0x16]
mov dl, byte [esp + 0x16]
mov byte [esp + 0x14], cl
lea eax, [esp + 0x15]
mov byte [esp + 0x12], dl
lea ecx, [esp + 0x14]
push eax
lea edx, [esp + 0x16]
push ecx
push edx
push 0x64
lea ecx, [esp + 0x64]
mov byte [esp + 0xc0], 1
call fcn.00659dd0
lea ecx, [esp + 0x74]
call fcn.00406c70
lea ecx, [esp + 0x78]
call fcn.00406c70
lea ecx, [esp + 0x7c]
call fcn.00406c70
mov eax, dword [esi + 0x68]
xor ebp, ebp
cmp eax, ebx
mov byte [esp + 0xb0], 3
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x20], ebx
mov dword [esp + 0x64], ebx
mov dword [esp + 0x68], ebx
jle 0x499e9f
mov eax, dword [esi + 0x6c]
lea ecx, [esp + 0x74]
push ecx
lea ecx, [esi + 0x40]
mov eax, dword [eax + ebp*4]
mov edx, dword [eax]
push edx
call fcn.004ca790
cmp eax, ebx
je 0x499df6
mov eax, dword [esp + 0x84]
lea ecx, [esp + 0x15]
mov dword [esp + 0x28], eax
lea edx, [esp + 0x24]
push ecx
lea eax, [esp + 0x2c]
push edx
push eax
lea ecx, [esp + 0xa4]
mov dword [esp + 0x30], ebx
call fcn.0049a130
push eax
lea ecx, [esp + 0x5c]
call fcn.00538970
add eax, 8
lea edx, [esp + 0x12]
push edx
mov dword [eax], ebx
mov ecx, dword [esp + 0x88]
mov dword [esp + 0x28], ecx
lea eax, [esp + 0x2c]
lea ecx, [esp + 0x28]
push eax
push ecx
lea ecx, [esp + 0xac]
mov dword [esp + 0x34], ebx
call fcn.0049a130
push eax
lea ecx, [esp + 0x4c]
call fcn.00538970
mov edi, eax
lea edx, [esp + 0x74]
add edi, 8
push edx
jmp 0x499e8a
mov eax, dword [esi + 0x6c]
mov dword [esp + 0x28], ebx
mov ecx, dword [eax + ebp*4]
lea eax, [eax + ebp*4]
mov ecx, dword [ecx]
mov edx, dword [ecx + 0x10]
lea ecx, [esp + 0x14]
mov dword [esp + 0x6c], edx
mov eax, dword [eax]
lea edx, [esp + 0x28]
push ecx
mov eax, dword [eax]
push edx
lea ecx, [esp + 0x98]
mov edi, dword [eax + 0x18]
lea eax, [esp + 0x74]
push eax
call fcn.0049a130
push eax
lea ecx, [esp + 0x3c]
call fcn.00538970
add eax, 8
mov dword [eax], edi
mov ecx, dword [esi + 0x6c]
mov dword [esp + 0x28], ebx
lea eax, [ecx + ebp*4]
mov ecx, dword [ecx + ebp*4]
mov edx, dword [ecx]
mov ecx, dword [edx + 0x10]
mov dword [esp + 0x30], ecx
mov edx, dword [eax]
lea eax, [esp + 0x1b]
mov dword [esp + 0x24], edx
lea ecx, [esp + 0x28]
push eax
lea edx, [esp + 0x34]
push ecx
push edx
lea ecx, [esp + 0x94]
call fcn.0049a130
push eax
lea ecx, [esp + 0x4c]
call fcn.00538970
mov edi, eax
mov eax, dword [esp + 0x24]
add edi, 8
mov ecx, dword [eax]
push ecx
mov ecx, esi
call fcn.004992e0
mov dword [edi], eax
mov eax, dword [esi + 0x68]
inc ebp
cmp ebp, eax
jl 0x499d60
mov edx, dword [esp + 0x54]
mov eax, dword [esp + 0x58]
push edx
push eax
call fcn.0041e550
add esp, 8
lea ecx, [esp + 0x54]
cmp eax, ebx
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], ecx
je 0x499f81
mov ecx, dword [eax + 4]
push ecx
push esi
lea ecx, [esi + 0x40]
call fcn.004c9cd0
mov edx, dword [esp + 0x1c]
mov ebp, eax
lea ecx, [esp + 0x34]
lea eax, [edx + 4]
push eax
call fcn.00486a90
cmp eax, ebx
jne 0x499f10
mov eax, dword [esp + 0x1c]
lea edx, [esp + 0x1b]
push edx
mov dword [esp + 0x74], ebx
mov ecx, dword [eax + 4]
lea eax, [esp + 0x70]
mov dword [esp + 0x70], ecx
push eax
lea ecx, [esp + 0x3c]
call fcn.00538970
mov dword [eax + 8], ebp
jmp 0x499f6c
mov ecx, dword [esp + 0x1c]
lea edx, [esp + 0x15]
push edx
mov dword [esp + 0x34], ebx
lea eax, [ecx + 4]
lea ecx, [esp + 0x34]
push ecx
push eax
lea ecx, [esp + 0x94]
call fcn.0049a130
push eax
lea ecx, [esp + 0x3c]
call fcn.00538970
mov edx, dword [esp + 0x1c]
mov edi, eax
lea ecx, [esp + 0x12]
add edi, 8
mov eax, dword [edx + 4]
lea edx, [esp + 0x28]
push ecx
push edx
lea ecx, [esp + 0x3c]
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], ebx
call fcn.00538970
mov ecx, dword [edi]
add eax, 8
add ecx, ebp
mov dword [eax], ecx
lea ecx, [esp + 0x1c]
call fcn.00495d50
mov eax, dword [esp + 0x1c]
cmp eax, ebx
jne 0x499ec5
mov edx, dword [esp + 0x54]
mov eax, dword [esp + 0x58]
push 0x51f270
push edx
push eax
call fcn.005813d0
mov ecx, dword [esp + 0x40]
mov edx, dword [esp + 0x44]
push ecx
push edx
mov dword [esp + 0x70], ebx
xor edi, edi
call fcn.0041e550
lea ecx, [esp + 0x48]
mov dword [esp + 0x30], eax
mov eax, dword [esp + 0x58]
mov dword [esp + 0x34], ecx
mov ecx, dword [esp + 0x5c]
push eax
push ecx
call fcn.0041e550
mov dword [esp + 0x80], eax
mov eax, dword [esp + 0x38]
add esp, 0x1c
lea ecx, [esp + 0x44]
cmp eax, ebx
mov dword [esp + 0x68], ecx
je 0x49a009
mov edx, dword [esp + 0x64]
mov eax, dword [eax + 8]
sub eax, dword [edx + 8]
cmp eax, ebx
jle 0x499fef
add edi, eax
lea ecx, [esp + 0x1c]
call fcn.00495d50
lea ecx, [esp + 0x64]
call fcn.00495d50
mov eax, dword [esp + 0x1c]
cmp eax, ebx
jne 0x499fdf
mov eax, dword [esp + 0x34]
mov ecx, dword [esp + 0x38]
push 0x51f270
push eax
push ecx
call fcn.005813d0
mov edx, dword [esp + 0x50]
mov eax, dword [esp + 0x54]
push 0x51f270
push edx
push eax
mov dword [esp + 0x54], ebx
call fcn.005813d0
mov ecx, dword [esp + 0x94]
mov esi, dword [0x6c74ac]
mov dword [esp + 0x64], ebx
add esp, 0x18
lea eax, [ecx - 0xc]
mov ecx, dword [ecx - 0xc]
cmp ecx, 0xffffffff
je 0x49a061
dec ecx
cmp ecx, ebx
mov dword [eax], ecx
jne 0x49a061
push eax
call esi
add esp, 4
mov edx, dword [esp + 0x78]
mov ecx, dword [edx - 0xc]
lea eax, [edx - 0xc]
cmp ecx, 0xffffffff
je 0x49a07d
dec ecx
cmp ecx, ebx
mov dword [eax], ecx
jne 0x49a07d
push eax
call esi
add esp, 4
mov eax, dword [esp + 0x74]
add eax, 0xfffffff4
mov ecx, dword [eax]
cmp ecx, 0xffffffff
je 0x49a098
dec ecx
cmp ecx, ebx
mov dword [eax], ecx
jne 0x49a098
push eax
call esi
add esp, 4
mov ecx, dword [esp + 0x54]
mov edx, dword [esp + 0x58]
push 0x51f270
push ecx
push edx
mov byte [esp + 0xbc], 1
call fcn.005813d0
mov eax, dword [esp + 0x60]
mov dword [esp + 0x68], ebx
push eax
call esi
mov ecx, dword [esp + 0x54]
mov edx, dword [esp + 0x58]
push 0x51f270
push ecx
push edx
mov byte [esp + 0xcc], bl
call fcn.005813d0
mov eax, dword [esp + 0x60]
mov dword [esp + 0x68], ebx
push eax
call esi
mov ecx, dword [esp + 0x54]
mov edx, dword [esp + 0x58]
push 0x51f270
push ecx
push edx
mov dword [esp + 0xdc], 0xffffffff
call fcn.005813d0
mov eax, dword [esp + 0x60]
mov dword [esp + 0x68], ebx
push eax
call esi
mov ecx, dword [esp + 0xd8]
add esp, 0x30
mov eax, edi
mov dword fs:[0], ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xa4
ret