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

Disassembly:
mov ecx, dword [0x7da588]
mov ecx, dword fs:[ecx]
mov ecx, dword [ecx]
cmp esp, dword [ecx + 8]
jbe 0x497d17
sub esp, 0x74
mov ecx, dword [esp + 0x80]
mov eax, dword [esp + 0x88]
cmp ecx, eax
jbe 0x497d11
mov edx, dword [esp + 0x7c]
lea ebx, [edx + eax*8]
mov ebp, dword [ebx + 4]
mov esi, dword [esp + 0x90]
cmp ecx, esi
jbe 0x497d0a
lea edi, [edx + eax*8 + 4]
mov dword [esp + 0x70], edi
lea ecx, [edx + esi*8]
mov dword [esp + 0x6c], ecx
mov eax, dword [ecx + 4]
lea esi, [edx + esi*8 + 4]
mov edx, dword [ecx]
mov ecx, dword [ebx]
mov dword [edi], eax
mov eax, dword [0x7da640]
test eax, eax
je 0x497765
mov dword [esp + 0x68], ecx
call fcn.0046bea0
mov dword [edi], edx
mov eax, dword [ebx]
mov dword [edi + 4], eax
mov dword [edi + 8], ecx
mov eax, ebp
mov ebp, dword [esp + 0x6c]
mov ecx, dword [ebp]
mov dword [edi + 0xc], ecx
mov ecx, dword [esp + 0x68]
mov ebp, eax
mov edi, dword [esp + 0x70]
mov dword [esp + 0x64], ebx
mov dword [ebx], edx
mov dword [esi], ebp
mov edx, dword [esp + 0x6c]
mov dword [edx], ecx
mov edx, dword [esp + 0x88]
inc edx
mov ebp, dword [esp + 0x8c]
dec ebp
mov dword [esp + 0x34], ebp
jmp 0x49778a
inc edx
mov dword [esp + 0x38], edx
cmp edx, ebp
jle 0x497799
xor eax, eax
jmp 0x497856
mov ecx, dword [esp + 0x80]
cmp ecx, edx
jbe 0x497d03
mov eax, dword [esp + 0x78]
mov ecx, dword [eax]
test byte [ecx], al
mov ecx, dword [esp + 0x7c]
lea ebp, [ecx + edx*8]
mov esi, dword [ebp]
mov dword [esp + 0x5c], esi
mov ebp, dword [ebp + 4]
mov dword [esp + 0x30], ebp
mov edi, dword [ebx]
mov dword [esp + 0x4c], edi
mov ebx, dword [ebx + 4]
mov dword [esp + 0x20], ebx
mov dword [esp], esi
mov dword [esp + 4], esi
mov dword [esp + 8], ebp
call fcn.004030b0
movzx eax, byte [esp + 0xc]
xor eax, 1
test al, al
je 0x497819
mov eax, dword [esp + 0x4c]
mov dword [esp], eax
mov dword [esp + 4], eax
mov ecx, dword [esp + 0x20]
mov dword [esp + 8], ecx
call fcn.004030b0
movzx eax, byte [esp + 0xc]
xor eax, 1
test al, al
jne 0x497819
mov eax, 1
jmp 0x497846
mov eax, dword [esp + 0x5c]
mov dword [esp], eax
mov eax, dword [esp + 0x30]
mov dword [esp + 4], eax
mov eax, dword [esp + 0x4c]
mov dword [esp + 8], eax
mov eax, dword [esp + 0x20]
mov dword [esp + 0xc], eax
call fcn.00402fc0
mov eax, dword [esp + 0x10]
test eax, eax
setl al
mov edx, dword [esp + 0x38]
mov ebx, dword [esp + 0x64]
mov ebp, dword [esp + 0x34]
mov edi, dword [esp + 0x70]
test al, al
jne 0x497789
jmp 0x497861
dec ebp
mov dword [esp + 0x34], ebp
cmp ebp, edx
jge 0x497870
xor eax, eax
jmp 0x49792f
mov ecx, dword [esp + 0x80]
cmp ecx, ebp
jbe 0x497cfc
mov eax, dword [esp + 0x78]
mov ecx, dword [eax]
test byte [ecx], al
mov ecx, dword [esp + 0x7c]
lea edx, [ecx + ebp*8]
mov esi, dword [edx]
mov dword [esp + 0x58], esi
mov edx, dword [edx + 4]
mov dword [esp + 0x2c], edx
mov edi, dword [ebx]
mov dword [esp + 0x48], edi
mov ebx, dword [ebx + 4]
mov dword [esp + 0x1c], ebx
mov dword [esp], esi
mov dword [esp + 4], esi
mov dword [esp + 8], edx
call fcn.004030b0
movzx eax, byte [esp + 0xc]
xor eax, 1
test al, al
je 0x4978ef
mov eax, dword [esp + 0x48]
mov dword [esp], eax
mov dword [esp + 4], eax
mov ecx, dword [esp + 0x1c]
mov dword [esp + 8], ecx
call fcn.004030b0
movzx eax, byte [esp + 0xc]
xor eax, 1
test al, al
jne 0x4978ef
mov eax, 1
jmp 0x49791c
mov eax, dword [esp + 0x58]
mov dword [esp], eax
mov eax, dword [esp + 0x2c]
mov dword [esp + 4], eax
mov eax, dword [esp + 0x48]
mov dword [esp + 8], eax
mov eax, dword [esp + 0x1c]
mov dword [esp + 0xc], eax
call fcn.00402fc0
mov eax, dword [esp + 0x10]
test eax, eax
setl al
xor eax, 1
mov edx, dword [esp + 0x38]
mov ebx, dword [esp + 0x64]
mov ebp, dword [esp + 0x34]
mov edi, dword [esp + 0x70]
test al, al
jne 0x497860
cmp ebp, edx
jl 0x4979bf
mov ecx, dword [esp + 0x80]
cmp ecx, edx
jbe 0x497cf5
mov esi, dword [esp + 0x7c]
lea eax, [esi + edx*8]
mov edi, dword [eax + 4]
cmp ecx, ebp
jbe 0x497cee
lea ebx, [esi + edx*8 + 4]
lea ecx, [esi + ebp*8]
mov dword [esp + 0x60], ecx
mov edx, dword [ecx + 4]
lea esi, [esi + ebp*8 + 4]
mov ebp, dword [ecx]
mov ecx, dword [eax]
mov dword [ebx], edx
mov edx, dword [0x7da640]
test edx, edx
je 0x4979a6
mov dword [esp + 0x68], ecx
mov edx, edi
call fcn.0046bea0
mov dword [edi], ebp
mov ebx, dword [eax]
mov dword [edi + 4], ebx
mov dword [edi + 8], ecx
mov ebx, dword [esp + 0x60]
mov ecx, dword [ebx]
mov dword [edi + 0xc], ecx
mov ecx, dword [esp + 0x68]
mov edi, edx
mov dword [eax], ebp
mov dword [esi], edi
mov edx, dword [esp + 0x60]
mov dword [edx], ecx
mov edx, dword [esp + 0x38]
inc edx
mov ebx, dword [esp + 0x34]
dec ebx
jmp 0x497a48
mov ecx, dword [esp + 0x80]
cmp ecx, ebp
jbe 0x497a28
mov eax, dword [esp + 0x7c]
lea ecx, [eax + ebp*8 + 4]
mov edx, dword [ebx + 4]
lea eax, [eax + ebp*8]
mov esi, dword [ebx]
mov ebp, dword [eax]
mov ebx, dword [eax + 4]
mov dword [ecx], edx
mov ecx, dword [0x7da640]
test ecx, ecx
je 0x497a07
mov ecx, edi
call fcn.0046bea0
mov dword [edi], esi
mov edx, dword [eax]
mov dword [edi + 4], edx
mov dword [edi + 8], ebp
mov edx, dword [esp + 0x64]
mov edx, dword [edx]
mov dword [edi + 0xc], edx
mov edi, ecx
mov dword [eax], esi
mov dword [edi], ebx
mov eax, dword [esp + 0x64]
mov dword [eax], ebp
mov eax, dword [esp + 0x34]
mov dword [esp + 0x94], eax
mov byte [esp + 0x98], 1
add esp, 0x74
ret
mov eax, ebp
call fcn.0046bef0
mov dword [esi], ebx
mov esi, dword [esp + 0x3c]
mov dword [ebp], esi
mov dword [ecx], edi
mov ebp, dword [esp + 0x38]
lea edx, [ebp + 1]
mov ebp, dword [esp + 0x34]
lea ebx, [ebp - 1]
mov dword [esp + 0x34], ebx
jmp 0x497ab9
cmp ebx, edx
jl 0x497c62
mov ecx, dword [esp + 0x80]
cmp ecx, edx
jbe 0x497cd9
mov ebp, dword [esp + 0x7c]
lea esi, [ebp + edx*8]
mov edi, dword [esi + 4]
cmp ecx, ebx
jbe 0x497cd2
mov dword [esp + 0x3c], edi
lea eax, [ebp + edx*8 + 4]
lea ecx, [ebp + ebx*8]
mov edx, dword [ecx + 4]
mov edi, dword [esi]
lea ebp, [ebp + ebx*8 + 4]
mov ebx, dword [ecx]
mov dword [eax], edx
mov edx, dword [0x7da640]
test edx, edx
je 0x497a2f
mov eax, edi
call fcn.0046bea0
mov dword [edi], ebx
mov edx, dword [esi]
mov dword [edi + 4], edx
mov dword [edi + 8], eax
mov edx, dword [ecx]
mov dword [edi + 0xc], edx
mov edi, eax
jmp 0x497a2f
inc edx
mov dword [esp + 0x38], edx
cmp ebx, edx
jge 0x497ac8
xor eax, eax
jmp 0x497b80
mov ecx, dword [esp + 0x80]
cmp ecx, edx
jbe 0x497ce7
mov eax, dword [esp + 0x78]
mov ecx, dword [eax]
test byte [ecx], al
mov ecx, dword [esp + 0x7c]
lea ebx, [ecx + edx*8]
mov ebp, dword [ebx]
mov dword [esp + 0x54], ebp
mov ebx, dword [ebx + 4]
mov dword [esp + 0x28], ebx
mov esi, dword [esp + 0x64]
mov edi, dword [esi]
mov dword [esp + 0x44], edi
mov esi, dword [esi + 4]
mov dword [esp + 0x18], esi
mov dword [esp], ebp
mov dword [esp + 4], ebp
mov dword [esp + 8], ebx
call fcn.004030b0
movzx eax, byte [esp + 0xc]
xor eax, 1
test al, al
je 0x497b4b
mov eax, dword [esp + 0x44]
mov dword [esp], eax
mov dword [esp + 4], eax
mov ecx, dword [esp + 0x18]
mov dword [esp + 8], ecx
call fcn.004030b0
movzx eax, byte [esp + 0xc]
xor eax, 1
test al, al
jne 0x497b4b
mov eax, 1
jmp 0x497b78
mov eax, dword [esp + 0x54]
mov dword [esp], eax
mov eax, dword [esp + 0x28]
mov dword [esp + 4], eax
mov eax, dword [esp + 0x44]
mov dword [esp + 8], eax
mov eax, dword [esp + 0x18]
mov dword [esp + 0xc], eax
call fcn.00402fc0
mov eax, dword [esp + 0x10]
test eax, eax
setl al
mov edx, dword [esp + 0x38]
mov ebx, dword [esp + 0x34]
test al, al
jne 0x497ab8
jmp 0x497b8b
dec ebx
mov dword [esp + 0x34], ebx
cmp ebx, edx
jge 0x497b9a
xor eax, eax
jmp 0x497c55
mov ecx, dword [esp + 0x80]
cmp ecx, ebx
jbe 0x497ce0
mov eax, dword [esp + 0x78]
mov ecx, dword [eax]
test byte [ecx], al
mov ecx, dword [esp + 0x7c]
lea edx, [ecx + ebx*8]
mov ebp, dword [edx]
mov dword [esp + 0x50], ebp
mov edx, dword [edx + 4]
mov dword [esp + 0x24], edx
mov esi, dword [esp + 0x64]
mov edi, dword [esi]
mov dword [esp + 0x40], edi
mov esi, dword [esi + 4]
mov dword [esp + 0x14], esi
mov dword [esp], ebp
mov dword [esp + 4], ebp
mov dword [esp + 8], edx
call fcn.004030b0
movzx eax, byte [esp + 0xc]
xor eax, 1
test al, al
je 0x497c1d
mov eax, dword [esp + 0x40]
mov dword [esp], eax
mov dword [esp + 4], eax
mov ecx, dword [esp + 0x14]
mov dword [esp + 8], ecx
call fcn.004030b0
movzx eax, byte [esp + 0xc]
xor eax, 1
test al, al
jne 0x497c1d
mov eax, 1
jmp 0x497c4a
mov eax, dword [esp + 0x50]
mov dword [esp], eax
mov eax, dword [esp + 0x24]
mov dword [esp + 4], eax
mov eax, dword [esp + 0x40]
mov dword [esp + 8], eax
mov eax, dword [esp + 0x14]
mov dword [esp + 0xc], eax
call fcn.00402fc0
mov eax, dword [esp + 0x10]
test eax, eax
setl al
xor eax, 1
mov edx, dword [esp + 0x38]
mov ebx, dword [esp + 0x34]
test al, al
jne 0x497b8a
jmp 0x497a4e
mov ecx, dword [esp + 0x80]
cmp ecx, ebx
jbe 0x497ccb
mov eax, dword [esp + 0x7c]
lea ecx, [eax + ebx*8 + 4]
mov edx, dword [esp + 0x64]
mov ebp, dword [edx + 4]
lea eax, [eax + ebx*8]
mov esi, dword [edx]
mov edi, dword [eax]
mov ebx, dword [eax + 4]
mov dword [ecx], ebp
mov ecx, dword [0x7da640]
test ecx, ecx
je 0x497caa
mov ecx, edi
call fcn.0046bea0
mov dword [edi], esi
mov ebp, dword [eax]
mov dword [edi + 4], ebp
mov dword [edi + 8], ecx
mov ebp, dword [edx]
mov dword [edi + 0xc], ebp
mov edi, ecx
mov dword [eax], esi
mov eax, dword [esp + 0x70]
mov dword [eax], ebx
mov dword [edx], edi
mov eax, dword [esp + 0x34]
mov dword [esp + 0x94], eax
mov byte [esp + 0x98], 0
add esp, 0x74
ret
mov eax, ebx
call fcn.0046bef0
mov eax, ebx
call fcn.0046bef0
mov eax, edx
call fcn.0046bef0
mov eax, ebx
call fcn.0046bef0
mov eax, edx
call fcn.0046bef0
mov eax, ebp
call fcn.0046bef0
mov eax, edx
call fcn.0046bef0
mov eax, ebp
call fcn.0046bef0
mov eax, edx
call fcn.0046bef0
mov eax, esi
call fcn.0046bef0
call fcn.0046bef0
nop
call fcn.0046aa70
jmp fcn.004976d0