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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x55a3d0
mov eax, dword fs:[0]
push eax
sub esp, 0x78
push ebx
push esi
push edi
mov eax, dword [0x5b1700]
xor eax, esp
push eax
lea eax, [esp + 0x88]
mov dword fs:[0], eax
mov esi, ecx
call fcn.004ae880
mov dword [esp + 0x28], eax
mov bl, 1
mov byte [eax + 0x15], bl
mov eax, dword [esp + 0x28]
mov dword [eax + 4], eax
mov eax, dword [esp + 0x28]
mov dword [eax], eax
mov eax, dword [esp + 0x28]
xor edi, edi
mov dword [eax + 8], eax
mov dword [esp + 0x2c], edi
mov dword [esp + 0x90], edi
call fcn.004ae880
mov dword [esp + 0x34], eax
mov byte [eax + 0x15], bl
mov eax, dword [esp + 0x34]
mov dword [eax + 4], eax
mov eax, dword [esp + 0x34]
mov dword [eax], eax
mov eax, dword [esp + 0x34]
mov dword [eax + 8], eax
mov dword [esp + 0x38], edi
mov byte [esp + 0x90], bl
mov edi, dword [esi + 0x50]
mov eax, dword [esi + 0x40]
mov ecx, dword [esi + 0x44]
mov edx, dword [esi + 0x48]
mov ebx, dword [esi + 0x4c]
mov dword [esp + 0x64], edi
mov edi, dword [esi + 0x2c]
mov dword [esp + 0x68], edi
mov edi, dword [esi + 0x34]
mov dword [esp + 0x6c], edi
mov edi, dword [esi + 0x30]
mov dword [esp + 0x70], edi
mov edi, dword [esi + 0x24]
mov dword [esp + 0x74], edi
mov edi, dword [esi + 0x20]
mov dword [esp + 0x78], edi
mov edi, dword [esi + 0x28]
mov dword [esp + 0x7c], edi
lea edi, [esi + 0x38]
mov dword [esp + 0x1c], edi
mov edi, dword [edi]
mov dword [esp + 0x54], eax
mov dword [esp + 0x58], ecx
mov dword [esp + 0x3c], eax
mov eax, dword [esi + 0x50]
mov dword [esp + 0x40], ecx
mov ecx, dword [esi + 0x2c]
mov dword [esp + 0x80], edi
mov dword [esp + 0x5c], edx
mov dword [esp + 0x60], ebx
mov dword [esp + 0x44], edx
mov dword [esp + 0x48], ebx
mov dword [esp + 0x4c], eax
mov dword [esp + 0x50], ecx
lea edi, [esp + 0x54]
lea ebx, [ebx]
lea edx, [esp + 0x84]
cmp edi, edx
je 0x496e29
mov eax, dword [edi]
mov dword [esp + 0x18], eax
lea ebx, [esp + 0x18]
lea eax, [esp + 0x24]
call fcn.004972e0
mov dword [eax], 0
add edi, 4
jmp 0x496e00
lea edi, [esp + 0x3c]
lea ecx, [ecx]
lea ecx, [esp + 0x54]
cmp edi, ecx
je 0x496e55
mov edx, dword [edi]
lea ebx, [esp + 0x18]
lea eax, [esp + 0x30]
mov dword [esp + 0x18], edx
call fcn.00497360
mov word [eax], 0
add edi, 4
jmp 0x496e30
lea ebx, [esi + 0x40]
lea eax, [esp + 0x24]
call fcn.004972e0
mov dword [eax], 1
lea edi, [esi + 0x44]
mov ebx, edi
lea eax, [esp + 0x24]
call fcn.004972e0
mov dword [eax], 1
lea ebx, [esi + 0x48]
lea eax, [esp + 0x24]
call fcn.004972e0
mov dword [eax], 1
mov eax, dword [esi + 0x7c]
sub eax, 0
je 0x496ebf
sub eax, 1
jne 0x496ed0
lea ebx, [esi + 0x50]
lea eax, [esp + 0x30]
call fcn.00497360
mov word [eax], 1
lea ebx, [esi + 0x28]
lea eax, [esp + 0x24]
call fcn.004972e0
mov dword [eax], 1
jmp 0x496ed0
lea ebx, [esi + 0x4c]
lea eax, [esp + 0x30]
call fcn.00497360
mov word [eax], 1
mov eax, dword [esi + 0x6c]
sub eax, 0
je 0x496f54
sub eax, 1
je 0x496efc
sub eax, 1
jne 0x496fb9
lea ebx, [esi + 0x40]
lea eax, [esp + 0x30]
call fcn.00497360
mov word [eax], 1
jmp 0x496fa7
lea ebx, [esi + 0x48]
lea eax, [esp + 0x30]
call fcn.00497360
mov word [eax], 1
lea ebx, [esi + 0x34]
lea eax, [esp + 0x24]
call fcn.004972e0
mov dword [eax], 1
lea edi, [esi + 0x24]
mov ebx, edi
lea eax, [esp + 0x24]
call fcn.004972e0
mov dword [eax], 1
lea ebx, [esi + 0x28]
lea eax, [esp + 0x24]
call fcn.004972e0
mov dword [eax], 0
mov eax, dword [esi + 0x70]
push eax
mov eax, dword [edi]
push eax
call dword [0x567650]
jmp 0x496fb9
mov ebx, edi
lea eax, [esp + 0x30]
call fcn.00497360
mov word [eax], 1
lea ebx, [esi + 0x30]
lea eax, [esp + 0x24]
call fcn.004972e0
mov dword [eax], 1
lea ebx, [esi + 0x20]
lea eax, [esp + 0x24]
call fcn.004972e0
mov dword [eax], 1
mov eax, dword [esi + 0x70]
mov ecx, dword [ebx]
push eax
push ecx
call dword [0x567650]
lea ebx, [esi + 0x4c]
lea eax, [esp + 0x24]
call fcn.004972e0
mov dword [eax], 1
lea ebx, [esi + 0x50]
lea eax, [esp + 0x24]
call fcn.004972e0
mov dword [eax], 1
xor edx, edx
cmp dword [esi + 0x6c], edx
lea ebx, [esi + 0x2c]
sete dl
lea eax, [esp + 0x24]
mov edi, edx
call fcn.004972e0
mov dword [eax], edi
xor eax, eax
cmp byte [esi + 0x78], al
setne al
movzx edi, ax
lea eax, [esp + 0x30]
call fcn.00497360
mov word [eax], di
mov eax, dword [esi + 0x6c]
sub eax, 0
mov ebx, 1
mov byte [esp + 0x13], bl
je 0x497037
sub eax, ebx
je 0x497025
sub eax, ebx
jne 0x49705a
add esi, 0x74
push esi
mov ecx, 0x56b930
call fcn.0045a4f0
mov ecx, dword [esi]
add esp, 4
and al, bl
cmp dword [ecx - 0xc], 0
setne dl
and al, dl
mov byte [esp + 0x13], al
jmp 0x49705a
mov eax, dword [esi + 0x70]
cmp dword [eax - 0xc], 0
setne al
and al, bl
mov byte [esp + 0x13], al
jmp 0x49705a
mov ecx, dword [esi + 0x70]
cmp dword [ecx - 0xc], 0
setne al
and al, bl
cmp dword [esi + 0x7c], ebx
mov byte [esp + 0x13], al
jne 0x49705a
mov edx, dword [esi + 0x74]
cmp dword [edx - 0xc], 0
setne al
and byte [esp + 0x13], al
mov ebx, dword [esp + 0x1c]
lea eax, [esp + 0x24]
call fcn.004972e0
xor ecx, ecx
cmp byte [esp + 0x13], cl
lea edi, [esp + 0x24]
setne cl
mov dword [esp + 0x1c], edi
mov dword [eax], ecx
mov edx, dword [esp + 0x28]
mov esi, dword [edx]
mov dword [esp + 0x20], esi
test edi, edi
mov ebx, dword [esp + 0x28]
je 0x497094
lea eax, [esp + 0x24]
cmp edi, eax
je 0x497099
call fcn.004f6492
cmp esi, ebx
je 0x4970db
test edi, edi
jne 0x4970a6
call fcn.004f6492
cmp esi, dword [edi + 4]
jne 0x4970b0
call fcn.004f6492
cmp esi, dword [edi + 4]
mov ebx, dword [esi + 0xc]
jne 0x4970bd
call fcn.004f6492
mov ecx, dword [esi + 0x10]
push ecx
push ebx
call dword [0x567628]
lea esi, [esp + 0x1c]
call fcn.004974b0
mov esi, dword [esp + 0x20]
mov edi, dword [esp + 0x1c]
jmp 0x497084
mov edx, dword [esp + 0x34]
mov esi, dword [edx]
lea edi, [esp + 0x30]
mov dword [esp + 0x20], esi
mov dword [esp + 0x1c], edi
lea ecx, [ecx]
test edi, edi
mov ebx, dword [esp + 0x34]
je 0x497100
lea eax, [esp + 0x30]
cmp edi, eax
je 0x497105
call fcn.004f6492
cmp esi, ebx
je 0x49714f
test edi, edi
jne 0x497112
call fcn.004f6492
cmp esi, dword [edi + 4]
jne 0x49711c
call fcn.004f6492
cmp esi, dword [edi + 4]
mov ebx, dword [esi + 0xc]
jne 0x497129
call fcn.004f6492
movzx ecx, word [esi + 0x10]
push 0
push ecx
push 0xf1
push ebx
call dword [0x56762c]
lea esi, [esp + 0x1c]
call fcn.004974b0
mov esi, dword [esp + 0x20]
mov edi, dword [esp + 0x1c]
jmp 0x4970f0
mov byte [esp + 0x90], 0
mov esi, dword [esp + 0x34]
mov edx, dword [esp + 0x34]
mov ecx, dword [edx]
push esi
lea eax, [esp + 0x34]
push eax
mov edx, eax
push ecx
push edx
lea eax, [esp + 0x2c]
push eax
mov edi, edx
call fcn.004973e0
mov ecx, dword [esp + 0x34]
push ecx
call fcn.004f5f70
xor eax, eax
add esp, 4
mov dword [esp + 0x34], eax
mov dword [esp + 0x38], eax
mov dword [esp + 0x90], 0xffffffff
mov eax, dword [esp + 0x28]
mov edx, dword [eax]
push eax
lea ecx, [esp + 0x28]
push ecx
push edx
mov esi, ecx
push esi
lea edx, [esp + 0x2c]
push edx
mov edi, ecx
call fcn.004973e0
mov eax, dword [esp + 0x28]
push eax
call fcn.004f5f70
add esp, 4
mov ecx, dword [esp + 0x88]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret