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

Disassembly:
push 0xffffffffffffffff
push 0x5fa628
mov eax, dword fs:[0]
push eax
sub esp, 0x64
mov eax, dword [0x6687b8]
xor eax, esp
mov dword [esp + 0x60], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x6687b8]
xor eax, esp
push eax
lea eax, [esp + 0x78]
mov dword fs:[0], eax
mov ebp, dword [esp + 0x9c]
mov ebx, ecx
lea edi, [esp + 0x38]
mov eax, ebx
mov dword [esp + 0x20], ebx
call fcn.00401a60
push eax
mov dword [esp + 0x84], 0
call fcn.00498990
mov edi, eax
add esp, 4
lea ecx, [esp + 0x38]
mov dword [esp + 0x24], edi
mov dword [esp + 0x80], 0xffffffff
call fcn.00401370
lea esi, [esp + 0x58]
mov ecx, edi
call fcn.004984c0
mov esi, 1
mov dword [esp + 0x80], esi
mov eax, dword [edi]
mov edx, dword [eax + 8]
mov ecx, edi
call edx
xor ecx, ecx
mov byte [esp + 0x34], al
mov dword [esp + 0x54], 0xf
mov dword [esp + 0x50], ecx
mov byte [esp + 0x40], cl
mov byte [esp + 0x80], 2
mov al, byte [ebp]
cmp al, 0x2b
je 0x497875
cmp al, 0x2d
mov dword [esp + 0x1c], ecx
jne 0x497879
mov dword [esp + 0x1c], esi
call fcn.005d3bfd
mov eax, dword [eax]
mov edi, dword [esp + 0xac]
mov cl, byte [eax]
push edi
push 0x65
push ebp
mov byte [esp + 0x24], cl
mov byte [esp + 0x25], 0x65
mov byte [esp + 0x26], 0
call fcn.005d3b50
movsx edx, byte [esp + 0x24]
add esp, 0xc
push edi
push edx
push ebp
mov dword [esp + 0x20], eax
call fcn.005d3b50
mov esi, eax
add esp, 0xc
test esi, esi
jne 0x4978c4
mov dword [esp + 0xa8], eax
mov ecx, dword [esp + 0x70]
cmp ecx, 0x10
mov edx, dword [esp + 0x5c]
mov eax, edx
jae 0x4978d7
lea eax, [esp + 0x5c]
cmp byte [eax], 0x7f
je 0x497a3d
cmp ecx, 0x10
mov eax, edx
jae 0x4978eb
lea eax, [esp + 0x5c]
cmp byte [eax], 0
jle 0x497a3d
push edi
push ebp
lea eax, [esp + 0x44]
call fcn.00412dc0
cmp dword [esp + 0x14], 0
jne 0x497921
mov eax, dword [esp + 0xa8]
push 0x30
lea edi, [esp + 0x40]
call fcn.00412eb0
mov ebx, dword [esp + 0xa0]
jmp 0x49795b
test esi, esi
jne 0x49793b
mov eax, dword [esp + 0xa0]
push 0x30
lea edi, [esp + 0x40]
call fcn.00412eb0
xor ebx, ebx
jmp 0x497942
mov ebx, dword [esp + 0xa0]
mov eax, dword [esp + 0xa8]
push 0x30
push eax
mov eax, dword [esp + 0x1c]
sub eax, ebp
lea edi, [esp + 0x44]
call fcn.00412f50
test esi, esi
push 0x30
lea edi, [esp + 0x40]
jne 0x49796e
mov eax, ebx
call fcn.00412eb0
jmp 0x497999
mov ecx, dword [esp + 0xa8]
sub esi, ebp
push ecx
lea eax, [esi + 1]
call fcn.00412f50
push 0x30
push ebx
mov eax, esi
lea edi, [esp + 0x44]
call fcn.00412f50
mov dword [esp + 0xa4], 0
mov ebp, dword [esp + 0x5c]
mov eax, 0x10
cmp dword [esp + 0x70], eax
mov dword [esp + 0xa0], 0
jae 0x4979b7
lea ebp, [esp + 0x5c]
cmp dword [esp + 0x54], eax
mov eax, dword [esp + 0x40]
jae 0x4979c5
lea eax, [esp + 0x40]
lea edx, [esp + 0x18]
push edx
push eax
call fcn.005d3b00
mov esi, eax
mov al, byte [ebp]
add esp, 8
cmp al, 0x7f
je 0x497a12
lea esp, [esp]
test al, al
jle 0x497a12
mov ecx, esi
sub ecx, dword [esp + 0x1c]
movsx eax, al
cmp eax, ecx
jae 0x497a12
sub esi, eax
push 0
push 1
mov eax, esi
lea edi, [esp + 0x44]
call fcn.00412f50
cmp byte [ebp + 1], 0
jle 0x497a0b
add ebp, 1
mov al, byte [ebp]
cmp al, 0x7f
jne 0x4979e0
cmp dword [esp + 0x54], 0x10
mov ebp, dword [esp + 0x40]
jae 0x497a21
lea ebp, [esp + 0x40]
mov edx, dword [esp + 0x50]
mov ebx, dword [esp + 0x20]
mov dword [esp + 0xa8], 0
mov dword [esp + 0xac], edx
mov edi, edx
mov ecx, dword [esp + 0xa4]
mov eax, dword [esp + 0xa0]
add eax, ecx
add eax, dword [esp + 0xa8]
mov ecx, dword [ebx + 0x18]
add eax, edi
test ecx, ecx
jle 0x497a69
cmp ecx, eax
jbe 0x497a69
sub ecx, eax
mov dword [esp + 0x14], ecx
jmp 0x497a71
mov dword [esp + 0x14], 0
mov eax, dword [ebx + 0x10]
and eax, 0x1c0
cmp eax, 0x40
je 0x497b70
cmp eax, 0x100
je 0x497ad8
mov edx, dword [esp + 0x8c]
mov ecx, dword [esp + 0x90]
mov bl, byte [esp + 0x98]
sub esp, 0xc
mov eax, esp
mov dword [eax], edx
mov edx, dword [esp + 0xa0]
mov dword [eax + 4], ecx
mov dword [eax + 8], edx
lea eax, [esp + 0x34]
push eax
mov eax, dword [esp + 0x24]
call fcn.00498190
mov edi, dword [eax]
mov ebx, dword [eax + 4]
mov esi, dword [eax + 8]
add esp, 0x10
mov dword [esp + 0x14], 0
jmp 0x497b85
cmp dword [esp + 0x1c], 0
mov edx, dword [esp + 0x90]
jbe 0x497b2b
mov ecx, dword [esp + 0x8c]
push ebp
sub esp, 0xc
mov eax, esp
mov dword [eax], ecx
mov ecx, dword [esp + 0xa4]
mov dword [eax + 4], edx
lea edx, [esp + 0x38]
mov dword [eax + 8], ecx
push edx
mov eax, 1
call fcn.00498110
mov esi, dword [eax]
mov edx, dword [eax + 4]
mov ecx, dword [eax + 8]
add esp, 0x14
add ebp, 1
sub edi, 1
mov dword [esp + 0xac], edi
jmp 0x497b39
mov ecx, dword [esp + 0x94]
mov esi, dword [esp + 0x8c]
mov bl, byte [esp + 0x98]
sub esp, 0xc
mov eax, esp
mov dword [eax], esi
mov dword [eax + 4], edx
mov dword [eax + 8], ecx
lea eax, [esp + 0x34]
push eax
mov eax, dword [esp + 0x24]
call fcn.00498190
mov edi, dword [eax]
mov ebx, dword [eax + 4]
mov esi, dword [eax + 8]
add esp, 0x10
mov dword [esp + 0x14], 0
jmp 0x497b85
mov esi, dword [esp + 0x94]
mov ebx, dword [esp + 0x90]
mov edi, dword [esp + 0x8c]
mov ecx, dword [esp + 0xac]
movsx edx, byte [esp + 0x18]
push ecx
push edx
push ebp
call fcn.005d3b50
add esp, 0xc
test eax, eax
je 0x497c6d
mov ecx, dword [esp + 0x34]
sub eax, ebp
add eax, 1
mov dword [esp + 0x1c], eax
push ecx
add eax, 0xffffffff
push eax
sub esp, 0xc
mov eax, esp
mov dword [eax], edi
mov dword [eax + 4], ebx
lea edx, [esp + 0x3c]
mov dword [eax + 8], esi
push edx
mov eax, ebp
call fcn.004983f0
mov edx, dword [eax]
add esp, 0xc
mov ecx, esp
mov dword [ecx], edx
mov edx, dword [eax + 4]
mov eax, dword [eax + 8]
mov dword [ecx + 4], edx
mov dword [ecx + 8], eax
mov eax, dword [esp + 0xac]
lea ecx, [esp + 0x34]
push ecx
mov bl, 0x30
call fcn.00498190
mov ecx, dword [esp + 0x34]
mov edx, dword [ecx]
mov esi, dword [eax]
mov edi, dword [eax + 4]
mov ebx, dword [eax + 8]
mov eax, dword [edx + 4]
add esp, 0x10
call eax
mov cl, al
sub esp, 0xc
mov eax, esp
mov dword [eax], esi
mov dword [eax + 4], edi
mov dword [eax + 8], ebx
lea edx, [esp + 0x34]
push edx
mov eax, 1
mov bl, cl
call fcn.00498190
mov edx, dword [eax]
add esp, 4
mov ecx, esp
mov dword [ecx], edx
mov edx, dword [eax + 4]
mov eax, dword [eax + 8]
mov dword [ecx + 4], edx
mov dword [ecx + 8], eax
mov eax, dword [esp + 0xb0]
lea ecx, [esp + 0x34]
push ecx
mov bl, 0x30
call fcn.00498190
mov edi, dword [eax]
mov ebx, dword [eax + 4]
mov esi, dword [eax + 8]
mov eax, dword [esp + 0x2c]
add esp, 0x10
add ebp, eax
sub dword [esp + 0xac], eax
mov edx, dword [esp + 0xac]
push edx
push 0x65
push ebp
call fcn.005d3b50
add esp, 0xc
test eax, eax
je 0x497d3a
mov ecx, dword [esp + 0x34]
sub eax, ebp
add eax, 1
mov dword [esp + 0x24], eax
push ecx
add eax, 0xffffffff
push eax
sub esp, 0xc
mov eax, esp
mov dword [eax], edi
mov dword [eax + 4], ebx
lea edx, [esp + 0x3c]
mov dword [eax + 8], esi
push edx
mov eax, ebp
call fcn.004983f0
mov edx, dword [eax]
add esp, 0xc
mov ecx, esp
mov dword [ecx], edx
mov edx, dword [eax + 4]
mov eax, dword [eax + 8]
mov dword [ecx + 4], edx
mov dword [ecx + 8], eax
mov eax, dword [esp + 0xb4]
lea ecx, [esp + 0x34]
push ecx
mov bl, 0x30
call fcn.00498190
mov edx, dword [esp + 0x30]
add esp, 0x10
test byte [edx + 0x10], 4
mov dword [esp + 0xa8], 0
mov ecx, 0x625f50
jne 0x497cfd
mov ecx, 0x625f54
mov edx, dword [eax]
push ecx
sub esp, 0xc
mov ecx, esp
mov dword [ecx], edx
mov edx, dword [eax + 4]
mov eax, dword [eax + 8]
mov dword [ecx + 4], edx
mov dword [ecx + 8], eax
lea ecx, [esp + 0x38]
push ecx
mov eax, 1
call fcn.00498110
mov edi, dword [eax]
mov ebx, dword [eax + 4]
mov esi, dword [eax + 8]
mov eax, dword [esp + 0x38]
add esp, 0x14
add ebp, eax
sub dword [esp + 0xac], eax
mov edx, dword [esp + 0x34]
mov eax, dword [esp + 0xac]
push edx
push eax
sub esp, 0xc
mov eax, esp
mov dword [eax], edi
mov dword [eax + 4], ebx
lea ecx, [esp + 0x3c]
mov dword [eax + 8], esi
push ecx
mov eax, ebp
call fcn.004983f0
mov edx, dword [eax]
add esp, 0xc
mov ecx, esp
mov dword [ecx], edx
mov edx, dword [eax + 4]
mov eax, dword [eax + 8]
mov dword [ecx + 4], edx
mov dword [ecx + 8], eax
mov eax, dword [esp + 0xb4]
lea ecx, [esp + 0x34]
push ecx
mov bl, 0x30
call fcn.00498190
mov esi, dword [eax + 4]
mov edx, dword [eax]
mov eax, dword [eax + 8]
mov ecx, dword [esp + 0x30]
mov bl, byte [esp + 0xa8]
add esp, 4
mov dword [ecx + 0x18], 0
mov ecx, esp
mov dword [ecx], edx
mov dword [ecx + 4], esi
mov esi, dword [esp + 0x94]
mov dword [ecx + 8], eax
mov eax, dword [esp + 0x20]
push esi
call fcn.00498190
mov edi, 0x10
add esp, 0x10
cmp dword [esp + 0x54], edi
jb 0x497ddb
mov edx, dword [esp + 0x40]
push edx
call fcn.005d2367
add esp, 4
xor eax, eax
cmp dword [esp + 0x70], edi
mov dword [esp + 0x54], 0xf
mov dword [esp + 0x50], eax
mov byte [esp + 0x40], al
jb 0x497e00
mov eax, dword [esp + 0x5c]
push eax
call fcn.005d2367
add esp, 4
mov eax, esi
mov ecx, dword [esp + 0x78]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x60]
xor ecx, esp
call fcn.005d28b3
add esp, 0x70
ret