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

Disassembly:
mov ecx, dword [0x5b96c8]
mov ecx, dword fs:[ecx]
mov ecx, dword [ecx]
cmp esp, dword [ecx + 8]
jbe 0x4980a0
sub esp, 0x7c
lea edi, [esp + 0x88]
xor eax, eax
call fcn.004668fb
lea edi, [esp + 0x54]
call fcn.004668fb
mov ecx, dword [esp + 0x84]
test ecx, ecx
je 0x497977
mov edx, dword [esp + 0x80]
movzx ebx, byte [edx]
cmp bl, 0x4a
jne 0x49793a
lea ebx, [ecx - 1]
mov ebp, ebx
neg ebx
sar ebx, 0x1f
and ebx, 1
add edx, ebx
cmp ecx, 1
je 0x49792d
mov dword [esp + 0x50], ebp
mov dword [esp + 0x74], edx
xor ebx, ebx
xor esi, esi
jmp 0x497fbe
xor ecx, ecx
xor edx, edx
xor ebx, ebx
xor ebp, ebp
jmp 0x497f6a
cmp bl, 0x4d
jne 0x497971
lea ebx, [ecx - 1]
mov ebp, ebx
neg ebx
sar ebx, 0x1f
and ebx, 1
add edx, ebx
cmp ecx, 1
jne 0x497960
xor eax, eax
xor ecx, ecx
xor edx, edx
xor esi, esi
jmp 0x497c56
mov dword [esp + 0x50], ebp
mov dword [esp + 0x70], edx
xor ebx, ebx
xor esi, esi
jmp 0x497b95
xor ebx, ebx
xor ebp, ebp
jmp 0x4979ab
lea edi, [esp + 0x88]
call fcn.004668fb
mov dword [esp + 0x9c], 0
mov dword [esp + 0xa0], 0
mov byte [esp + 0xa4], 0
add esp, 0x7c
ret
xor eax, eax
mov ebp, ebx
mov ebx, edi
cmp ecx, ebx
jle 0x497a4f
movzx esi, byte [ebx + edx]
cmp esi, 0x80
jge 0x4979c4
lea edi, [ebx + 1]
jmp 0x4979fa
mov dword [esp + 0x3c], ebx
mov dword [esp + 0x24], ebp
mov dword [esp], edx
mov dword [esp + 4], ecx
mov dword [esp + 8], ebx
call fcn.0045f400
mov esi, dword [esp + 0xc]
mov edi, dword [esp + 0x10]
mov ecx, dword [esp + 0x84]
mov edx, dword [esp + 0x80]
mov ebx, dword [esp + 0x3c]
mov ebp, dword [esp + 0x24]
lea eax, [esi - 0x30]
cmp eax, 9
ja 0x497a1c
lea ebx, [ebp + ebp*4]
lea ebx, [esi + ebx*2 - 0x30]
cmp ebx, 0x16d
jle 0x4979a5
xor eax, eax
xor ecx, ecx
xor ebp, ebp
xor edx, edx
jmp 0x497a66
test ebx, ebx
je 0x497a24
test ebp, ebp
jge 0x497a2e
xor eax, eax
xor ecx, ecx
xor ebp, ebp
xor edx, edx
jmp 0x497a66
cmp ecx, ebx
jb 0x497b81
sub ecx, ebx
mov eax, ecx
neg ecx
sar ecx, 0x1f
and ebx, ecx
lea ecx, [edx + ebx]
mov edx, ecx
mov ecx, eax
mov eax, 1
jmp 0x497a66
test ebp, ebp
jge 0x497a5d
xor eax, eax
xor ecx, ecx
xor ebp, ebp
xor edx, edx
jmp 0x497a66
mov eax, 1
xor ecx, ecx
xor edx, edx
test al, al
je 0x497a78
mov dword [esp + 0x54], 1
mov dword [esp + 0x58], ebp
jmp 0x497aa8
lea edi, [esp + 0x88]
xor eax, eax
call fcn.004668fb
mov dword [esp + 0x9c], 0
mov dword [esp + 0xa0], 0
mov byte [esp + 0xa4], 0
add esp, 0x7c
ret
test ecx, ecx
je 0x497ab1
cmp byte [edx], 0x2f
je 0x497aeb
mov dword [esp + 0x50], ecx
mov dword [esp + 0x64], 0x1c20
lea edi, [esp + 0x88]
lea esi, [esp + 0x54]
call fcn.00466dde
mov dword [esp + 0x9c], edx
mov eax, dword [esp + 0x50]
mov dword [esp + 0xa0], eax
mov byte [esp + 0xa4], 1
add esp, 0x7c
ret
lea eax, [ecx - 1]
mov ecx, eax
neg eax
sar eax, 0x1f
and eax, 1
add eax, edx
mov dword [esp], eax
mov dword [esp + 4], ecx
call fcn.004973e0
movzx eax, byte [esp + 0x14]
test al, al
je 0x497b51
mov eax, dword [esp + 8]
mov ecx, dword [esp + 0xc]
mov dword [esp + 0x78], ecx
mov edx, dword [esp + 0x10]
mov dword [esp + 0x64], eax
lea edi, [esp + 0x88]
lea esi, [esp + 0x54]
call fcn.00466dde
mov eax, dword [esp + 0x78]
mov dword [esp + 0x9c], eax
mov dword [esp + 0xa0], edx
mov byte [esp + 0xa4], 1
add esp, 0x7c
ret
lea edi, [esp + 0x88]
xor eax, eax
call fcn.004668fb
mov dword [esp + 0x9c], 0
mov dword [esp + 0xa0], 0
mov byte [esp + 0xa4], 0
add esp, 0x7c
ret
mov eax, ebx
call fcn.004667f0
mov ecx, dword [esp + 0x84]
mov esi, ebx
mov ebx, eax
xor eax, eax
cmp ebx, ebp
jge 0x497c3f
movzx edi, byte [ebx + edx]
cmp edi, 0x80
jge 0x497bae
lea eax, [ebx + 1]
jmp 0x497be5
mov dword [esp + 0x48], ebx
mov dword [esp + 0x30], esi
mov dword [esp], edx
mov dword [esp + 4], ebp
mov dword [esp + 8], ebx
call fcn.0045f400
mov edi, dword [esp + 0xc]
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x84]
mov edx, dword [esp + 0x70]
mov ebx, dword [esp + 0x48]
mov ebp, dword [esp + 0x50]
mov esi, dword [esp + 0x30]
lea ecx, [edi - 0x30]
cmp ecx, 9
ja 0x497c03
lea ebx, [esi + esi*4]
lea ebx, [edi + ebx*2 - 0x30]
cmp ebx, 0xc
jle 0x497b88
xor eax, eax
xor ecx, ecx
xor edx, edx
xor esi, esi
jmp 0x497c56
test ebx, ebx
je 0x497c0b
test esi, esi
jg 0x497c15
xor eax, eax
xor ecx, ecx
xor edx, edx
xor esi, esi
jmp 0x497c56
cmp ebx, ebp
ja 0x497f61
mov ebp, dword [esp + 0x84]
sub ebp, ebx
dec ebp
mov eax, ebp
xchg ebp, ebx
neg ebx
xchg ebp, ebx
sar ebp, 0x1f
and ebx, ebp
add edx, ebx
mov ecx, eax
mov eax, 1
jmp 0x497c56
test esi, esi
jg 0x497c4d
xor eax, eax
xor ecx, ecx
xor edx, edx
xor esi, esi
jmp 0x497c56
mov eax, 1
xor ecx, ecx
xor edx, edx
test al, al
je 0x497c9a
test ecx, ecx
je 0x497c9a
cmp byte [edx], 0x2e
jne 0x497c9a
mov dword [esp + 0x38], esi
lea ebx, [ecx - 1]
mov ebp, ebx
neg ebx
sar ebx, 0x1f
and ebx, 1
add edx, ebx
cmp ecx, 1
jne 0x497c88
xor eax, eax
xor ecx, ecx
xor edx, edx
xor ebx, ebx
jmp 0x497d99
mov dword [esp + 0x20], ecx
mov dword [esp + 0x50], ebp
mov dword [esp + 0x6c], edx
xor eax, eax
xor ebx, ebx
jmp 0x497cd4
lea edi, [esp + 0x88]
xor eax, eax
call fcn.004668fb
mov dword [esp + 0x9c], 0
mov dword [esp + 0xa0], 0
mov byte [esp + 0xa4], 0
add esp, 0x7c
ret
mov ecx, dword [esp + 0x20]
mov eax, esi
mov esi, dword [esp + 0x38]
cmp eax, ebp
jge 0x497d82
movzx edi, byte [eax + edx]
cmp edi, 0x80
jge 0x497ced
lea esi, [eax + 1]
jmp 0x497d21
mov dword [esp + 0x44], eax
mov dword [esp + 0x2c], ebx
mov dword [esp], edx
mov dword [esp + 4], ebp
mov dword [esp + 8], eax
call fcn.0045f400
mov edi, dword [esp + 0xc]
mov esi, dword [esp + 0x10]
mov eax, dword [esp + 0x44]
mov ecx, dword [esp + 0x20]
mov edx, dword [esp + 0x6c]
mov ebx, dword [esp + 0x2c]
mov ebp, dword [esp + 0x50]
lea ecx, [edi - 0x30]
cmp ecx, 9
ja 0x497d43
lea ebx, [ebx + ebx*4]
lea ebx, [edi + ebx*2 - 0x30]
cmp ebx, 5
jle 0x497cca
mov esi, dword [esp + 0x38]
xor eax, eax
xor ecx, ecx
xor edx, edx
xor ebx, ebx
jmp 0x497d99
test eax, eax
je 0x497d4b
test ebx, ebx
jg 0x497d59
mov esi, dword [esp + 0x38]
xor eax, eax
xor ecx, ecx
xor edx, edx
xor ebx, ebx
jmp 0x497d99
cmp eax, ebp
ja 0x497f5a
mov ebp, dword [esp + 0x20]
sub ebp, eax
dec ebp
mov ecx, ebp
xchg ebp, ebx
neg ebx
xchg ebp, ebx
sar ebp, 0x1f
and eax, ebp
add edx, eax
mov esi, dword [esp + 0x38]
mov eax, 1
jmp 0x497d99
test ebx, ebx
jg 0x497d90
xor eax, eax
xor ecx, ecx
xor edx, edx
xor ebx, ebx
jmp 0x497d99
mov eax, 1
xor ecx, ecx
xor edx, edx
test al, al
je 0x497de1
test ecx, ecx
je 0x497de1
cmp byte [edx], 0x2e
jne 0x497de1
lea ebp, [ecx - 1]
mov eax, ebp
xchg ebp, ebx
neg ebx
xchg ebp, ebx
sar ebp, 0x1f
and ebp, 1
add edx, ebp
cmp ecx, 1
je 0x497dd7
mov dword [esp + 0x18], ebx
mov dword [esp + 0x50], eax
mov dword [esp + 0x68], edx
mov dword [esp + 0x1c], ecx
xor ebp, ebp
xor edi, edi
jmp 0x497e70
xor eax, eax
xor ecx, ecx
xor edx, edx
xor ebp, ebp
jmp 0x497e11
lea edi, [esp + 0x88]
xor eax, eax
call fcn.004668fb
mov dword [esp + 0x9c], 0
mov dword [esp + 0xa0], 0
mov byte [esp + 0xa4], 0
add esp, 0x7c
ret
test al, al
je 0x497e30
mov dword [esp + 0x54], 2
mov dword [esp + 0x58], edx
mov dword [esp + 0x5c], ebx
mov dword [esp + 0x60], esi
mov edx, ebp
jmp 0x497aa8
lea edi, [esp + 0x88]
xor eax, eax
call fcn.004668fb
mov dword [esp + 0x9c], 0
mov dword [esp + 0xa0], 0
mov byte [esp + 0xa4], 0
add esp, 0x7c
ret
mov ecx, dword [esp + 0x1c]
mov esi, dword [esp + 0x38]
mov edi, ebp
mov ebp, ebx
mov ebx, dword [esp + 0x18]
cmp ebp, eax
jge 0x497f30
movzx esi, byte [ebp + edx]
cmp esi, 0x80
jge 0x497e8a
lea ebx, [ebp + 1]
jmp 0x497ebe
mov dword [esp + 0x40], ebp
mov dword [esp + 0x28], edi
mov dword [esp], edx
mov dword [esp + 4], eax
mov dword [esp + 8], ebp
call fcn.0045f400
mov esi, dword [esp + 0xc]
mov ebx, dword [esp + 0x10]
mov eax, dword [esp + 0x50]
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x68]
mov ebp, dword [esp + 0x40]
mov edi, dword [esp + 0x28]
lea ecx, [esi - 0x30]
cmp ecx, 9
ja 0x497ee7
lea ebp, [edi + edi*4]
lea ebp, [esi + ebp*2 - 0x30]
cmp ebp, 6
jle 0x497e60
mov ebx, dword [esp + 0x18]
mov esi, dword [esp + 0x38]
xor eax, eax
xor ecx, ecx
xor edx, edx
xor ebp, ebp
jmp 0x497e11
test ebp, ebp
je 0x497eef
test edi, edi
jge 0x497f04
mov ebx, dword [esp + 0x18]
mov esi, dword [esp + 0x38]
xor eax, eax
xor ecx, ecx
xor edx, edx
xor ebp, ebp
jmp 0x497e11
cmp ebp, eax
ja 0x497f51
mov eax, dword [esp + 0x1c]
sub eax, ebp
lea ecx, [eax - 1]
mov eax, ecx
neg eax
sar eax, 0x1f
and ebp, eax
add ebp, edx
mov ebx, dword [esp + 0x18]
mov esi, dword [esp + 0x38]
mov eax, 1
mov edx, edi
jmp 0x497e11
test edi, edi
jge 0x497f41
xor eax, eax
xor ecx, ecx
xor edx, edx
xor ebp, ebp
jmp 0x497e11
mov eax, 1
xor ecx, ecx
mov edx, edi
xor ebp, ebp
jmp 0x497e11
mov ecx, eax
mov eax, ebp
call fcn.004667f0
mov ecx, ebp
call fcn.004667f0
mov eax, ebx
mov ecx, ebp
call fcn.004667f0
test cl, cl
je 0x497f83
mov dword [esp + 0x54], 0
mov dword [esp + 0x58], edx
mov ecx, ebx
mov edx, ebp
jmp 0x497aa8
lea edi, [esp + 0x88]
call fcn.004668fb
mov dword [esp + 0x9c], 0
mov dword [esp + 0xa0], 0
mov byte [esp + 0xa4], 0
add esp, 0x7c
ret
mov ecx, dword [esp + 0x84]
mov esi, ebx
mov ebx, eax
xor eax, eax
cmp ebx, ebp
jge 0x498075
movzx edi, byte [ebx + edx]
cmp edi, 0x80
jge 0x497fd7
lea eax, [ebx + 1]
jmp 0x49800e
mov dword [esp + 0x4c], ebx
mov dword [esp + 0x34], esi
mov dword [esp], edx
mov dword [esp + 4], ebp
mov dword [esp + 8], ebx
call fcn.0045f400
mov edi, dword [esp + 0xc]
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x84]
mov edx, dword [esp + 0x74]
mov ebx, dword [esp + 0x4c]
mov ebp, dword [esp + 0x50]
mov esi, dword [esp + 0x34]
lea ecx, [edi - 0x30]
cmp ecx, 9
ja 0x498034
lea ebx, [esi + esi*4]
lea ebx, [edi + ebx*2 - 0x30]
cmp ebx, 0x16d
jle 0x497fb1
xor eax, eax
xor ecx, ecx
xor edx, edx
xor ebx, ebx
xor ebp, ebp
jmp 0x497f6a
test ebx, ebx
je 0x49803c
test esi, esi
jg 0x49804b
xor eax, eax
xor ecx, ecx
xor edx, edx
xor ebx, ebx
xor ebp, ebp
jmp 0x497f6a
cmp ebx, ebp
ja 0x498096
mov eax, dword [esp + 0x84]
sub eax, ebx
dec eax
mov ecx, eax
neg eax
sar eax, 0x1f
and ebx, eax
lea ebp, [ebx + edx]
xor eax, eax
mov edx, esi
mov ebx, ecx
mov ecx, 1
jmp 0x497f6a
test esi, esi
jg 0x498086
xor ecx, ecx
xor edx, edx
xor ebx, ebx
xor ebp, ebp
jmp 0x497f6a
mov ecx, 1
mov edx, esi
xor ebx, ebx
xor ebp, ebp
jmp 0x497f6a
mov eax, ebx
mov ecx, ebp
call fcn.004667f0
nop
call fcn.00465370
jmp fcn.004978c0