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

Disassembly:
push 0xffffffffffffffff
push 0x5943a0
mov eax, dword fs:[0]
push eax
sub esp, 0x64
mov eax, dword [0x5e173c]
xor eax, esp
mov dword [esp + 0x60], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x5e173c]
xor eax, esp
push eax
lea eax, [esp + 0x78]
mov dword fs:[0], eax
mov edi, dword [esp + 0x98]
mov edx, dword [esp + 0x8c]
mov ebp, dword [esp + 0x94]
mov esi, dword [esp + 0x90]
mov eax, dword [edi + 0x14]
mov ecx, dword [esp + 0x9c]
and eax, 0x3000
mov dword [esp + 0x2c], edx
mov dword [esp + 0x1c], ebp
cmp eax, 0x3000
jne 0x4ff445
push ecx
push edi
push ebp
push esi
push edx
push dword [esp + 0x9c]
call fcn.004fffd0
add esp, 0x18
jmp 0x4ffeed
lea eax, [esp + 0x30]
mov ecx, edi
push eax
call fcn.00406de0
mov dword [esp + 0x80], 0
push eax
call fcn.00500ea0
mov ebx, eax
add esp, 4
mov dword [esp + 0x28], ebx
mov dword [esp + 0x80], 0xffffffff
mov ecx, dword [esp + 0x30]
test ecx, ecx
je 0x4ff48f
mov edx, dword [ecx]
call dword [edx + 8]
test eax, eax
je 0x4ff48f
mov edx, dword [eax]
mov ecx, eax
push 1
call dword [edx]
lea eax, [esp + 0x4c]
mov ecx, ebx
push eax
call fcn.004fff10
mov dword [esp + 0x80], 1
lea eax, [esp + 0x24]
mov ebx, dword [esp + 0x2c]
mov ecx, edi
push eax
mov dword [esp + 0x1c], ebx
mov byte [esp + 0x1a], 0
call fcn.00406de0
mov byte [esp + 0x80], 2
push eax
call fcn.00409730
add esp, 4
mov edi, eax
mov byte [esp + 0x80], 1
mov ecx, dword [esp + 0x24]
test ecx, ecx
je 0x4ff4f3
mov edx, dword [ecx]
call dword [edx + 8]
test eax, eax
je 0x4ff4f3
mov edx, dword [eax]
mov ecx, eax
push 1
call dword [edx]
mov eax, dword [edi]
lea ecx, [esp + 0x64]
push ecx
push 0x5be4be
push 0x5be4b0
mov ecx, edi
call dword [eax + 0x1c]
push ebp
mov ecx, esi
call fcn.00501460
test al, al
jne 0x4ff553
mov ecx, esi
call fcn.00500c10
mov ecx, esi
cmp al, byte [esp + 0x6f]
jne 0x4ff535
lea edi, [ebx + 1]
mov byte [ebx], 0x2b
mov dword [esp + 0x18], edi
call fcn.00500c60
jmp 0x4ff557
call fcn.00500c10
cmp al, byte [esp + 0x6e]
jne 0x4ff553
lea edi, [ebx + 1]
mov byte [ebx], 0x2d
mov ecx, esi
mov dword [esp + 0x18], edi
call fcn.00500c60
jmp 0x4ff557
mov edi, dword [esp + 0x18]
xor ebx, ebx
mov byte [esp + 0x15], 0
cmp dword [esp + 0x60], 0x10
lea ebp, [esp + 0x4c]
mov dword [esp + 0x24], ebx
cmovae ebp, dword [esp + 0x4c]
mov dword [esp + 0x20], ebx
mov al, byte [ebp]
cmp al, 0x7f
je 0x4ff7b7
test al, al
jle 0x4ff7b7
cmp dword [esp + 0x5c], ebx
jne 0x4ff593
mov byte [esp + 0x17], bl
jmp 0x4ff5a2
mov ecx, dword [esp + 0x28]
mov eax, dword [ecx]
mov eax, dword [eax + 0x10]
call eax
mov byte [esp + 0x17], al
mov dword [esp + 0x44], ebx
mov dword [esp + 0x48], ebx
mov dword [esp + 0x44], ebx
mov byte [esp + 0x34], bl
mov dword [esp + 0x48], 0xf
mov word [esp + 0x34], bx
mov dword [esp + 0x44], 1
mov byte [esp + 0x80], 3
mov ecx, esi
push dword [esp + 0x1c]
xor edi, edi
call fcn.00501460
test al, al
jne 0x4ff713
cmp byte [esi + 4], 0
jne 0x4ff61f
mov ecx, dword [esi]
test ecx, ecx
je 0x4ff615
mov eax, dword [ecx + 0x1c]
mov edx, dword [eax]
test edx, edx
je 0x4ff606
mov eax, dword [ecx + 0x2c]
cmp dword [eax], 0
jle 0x4ff606
movzx eax, byte [edx]
jmp 0x4ff60b
mov eax, dword [ecx]
call dword [eax + 0x18]
cmp eax, 0xffffffff
je 0x4ff615
mov byte [esi + 5], al
jmp 0x4ff61b
mov dword [esi], 0
mov byte [esi + 4], 1
mov cl, byte [esp + 0x64]
lea eax, [esp + 0x64]
mov dl, byte [esi + 5]
test cl, cl
je 0x4ff63c
mov edi, edi
cmp cl, dl
je 0x4ff63c
mov cl, byte [eax + 1]
inc eax
test cl, cl
jne 0x4ff630
lea ecx, [esp + 0x64]
sub eax, ecx
cmp eax, 0xa
jae 0x4ff69c
mov byte [esp + 0x15], 1
cmp ebx, 0x24
jl 0x4ff657
inc dword [esp + 0x20]
jmp 0x4ff675
test eax, eax
jne 0x4ff65f
test ebx, ebx
je 0x4ff675
mov ecx, dword [esp + 0x18]
mov al, byte [eax + 0x5be4b0]
mov byte [ecx], al
inc ecx
inc ebx
mov dword [esp + 0x18], ecx
mov dword [esp + 0x24], ebx
mov ecx, dword [esp + 0x48]
lea eax, [esp + 0x34]
mov edx, dword [esp + 0x34]
cmp ecx, 0x10
cmovae eax, edx
cmp byte [eax + edi], 0x7f
je 0x4ff6da
cmp ecx, 0x10
lea eax, [esp + 0x34]
cmovae eax, edx
inc byte [eax + edi]
jmp 0x4ff6da
mov edx, dword [esp + 0x48]
lea eax, [esp + 0x34]
mov ebx, dword [esp + 0x34]
cmp edx, 0x10
cmovae eax, ebx
cmp byte [edi + eax], 0
je 0x4ff6fc
cmp byte [esp + 0x17], 0
je 0x4ff6fc
mov ecx, esi
call fcn.00500c10
cmp al, byte [esp + 0x17]
jne 0x4ff6f4
push 0
push 1
lea ecx, [esp + 0x3c]
call fcn.00408b20
mov ebx, dword [esp + 0x24]
inc edi
mov ecx, esi
call fcn.00500c60
push dword [esp + 0x1c]
mov ecx, esi
call fcn.00501460
test al, al
je 0x4ff5e4
mov edx, dword [esp + 0x48]
mov ebx, dword [esp + 0x34]
test edi, edi
je 0x4ff762
cmp edx, 0x10
lea eax, [esp + 0x34]
cmovae eax, ebx
cmp byte [eax + edi], 0
jle 0x4ff75d
inc edi
jmp 0x4ff720
mov edx, dword [esp + 0x48]
mov ebx, dword [esp + 0x34]
jmp 0x4ff720
test edi, edi
je 0x4ff762
mov cl, byte [ebp]
cmp cl, 0x7f
je 0x4ff762
dec edi
je 0x4ff73e
cmp edx, 0x10
lea eax, [esp + 0x34]
cmovae eax, ebx
cmp cl, byte [eax + edi]
jne 0x4ff75d
test edi, edi
jne 0x4ff750
cmp edx, 0x10
lea eax, [esp + 0x34]
cmovae eax, ebx
cmp cl, byte [eax]
jl 0x4ff75d
cmp byte [ebp + 1], 0
lea eax, [ebp + 1]
jle 0x4ff720
mov ebp, eax
jmp 0x4ff720
mov byte [esp + 0x16], 1
mov byte [esp + 0x80], 1
cmp dword [esp + 0x48], 0x10
jb 0x4ff77d
push dword [esp + 0x34]
call fcn.00564de3
add esp, 4
mov ebx, dword [esp + 0x24]
mov dword [esp + 0x48], 0xf
mov dword [esp + 0x44], 0
mov byte [esp + 0x34], 0
cmp byte [esp + 0x15], 0
je 0x4ff8bd
mov ebp, dword [esp + 0x18]
test ebx, ebx
jne 0x4ff8c1
mov byte [ebp], 0x30
inc ebp
jmp 0x4ff8c1
mov ebp, dword [esp + 0x1c]
mov ecx, esi
push ebp
call fcn.00501460
test al, al
jne 0x4ff8bd
jmp 0x4ff7d0
cmp byte [esi + 4], 0
jne 0x4ff80b
mov ecx, dword [esi]
test ecx, ecx
je 0x4ff801
mov eax, dword [ecx + 0x1c]
mov edx, dword [eax]
test edx, edx
je 0x4ff7f2
mov eax, dword [ecx + 0x2c]
cmp dword [eax], 0
jle 0x4ff7f2
movzx eax, byte [edx]
jmp 0x4ff7f7
mov eax, dword [ecx]
call dword [eax + 0x18]
cmp eax, 0xffffffff
je 0x4ff801
mov byte [esi + 5], al
jmp 0x4ff807
mov dword [esi], 0
mov byte [esi + 4], 1
mov cl, byte [esp + 0x64]
lea eax, [esp + 0x64]
mov dl, byte [esi + 5]
test cl, cl
je 0x4ff82c
lea ebx, [ebx]
cmp cl, dl
je 0x4ff82c
mov cl, byte [eax + 1]
inc eax
test cl, cl
jne 0x4ff820
lea ecx, [esp + 0x64]
sub eax, ecx
cmp eax, 0xa
jae 0x4ff796
cmp ebx, 0x24
jl 0x4ff846
inc dword [esp + 0x20]
jmp 0x4ff860
test eax, eax
jne 0x4ff84e
test ebx, ebx
je 0x4ff860
mov al, byte [eax + 0x5be4b0]
mov byte [edi], al
inc edi
inc ebx
mov dword [esp + 0x18], edi
mov dword [esp + 0x24], ebx
mov ecx, dword [esi]
mov byte [esp + 0x15], 1
test ecx, ecx
je 0x4ff89e
mov eax, dword [ecx + 0x1c]
cmp dword [eax], 0
je 0x4ff88e
mov edx, dword [ecx + 0x2c]
mov eax, dword [edx]
test eax, eax
jle 0x4ff88e
dec eax
mov dword [edx], eax
mov ecx, dword [ecx + 0x1c]
mov edx, dword [ecx]
lea eax, [edx + 1]
mov dword [ecx], eax
movzx eax, byte [edx]
jmp 0x4ff893
mov eax, dword [ecx]
call dword [eax + 0x1c]
cmp eax, 0xffffffff
je 0x4ff89e
mov byte [esi + 4], 0
jmp 0x4ff8a8
mov dword [esi], 0
mov byte [esi + 4], 1
push ebp
mov ecx, esi
call fcn.00501460
test al, al
je 0x4ff7d0
jmp 0x4ff7a1
mov ebp, dword [esp + 0x18]
mov ebx, dword [esp + 0x1c]
mov ecx, esi
push ebx
call fcn.00501460
test al, al
jne 0x4ff975
cmp byte [esi + 4], al
jne 0x4ff90f
mov ecx, dword [esi]
test ecx, ecx
je 0x4ff905
mov eax, dword [ecx + 0x1c]
mov edx, dword [eax]
test edx, edx
je 0x4ff8f6
mov eax, dword [ecx + 0x2c]
cmp dword [eax], 0
jle 0x4ff8f6
movzx eax, byte [edx]
jmp 0x4ff8fb
mov eax, dword [ecx]
call dword [eax + 0x18]
cmp eax, 0xffffffff
je 0x4ff905
mov byte [esi + 5], al
jmp 0x4ff90b
mov dword [esi], 0
mov byte [esi + 4], 1
mov ecx, dword [esp + 0x28]
mov bl, byte [esi + 5]
mov eax, dword [ecx]
mov eax, dword [eax + 0xc]
call eax
cmp bl, al
jne 0x4ff971
call fcn.0056cd16
mov eax, dword [eax]
mov al, byte [eax]
mov byte [ebp], al
inc ebp
mov ecx, dword [esi]
test ecx, ecx
je 0x4ff967
mov eax, dword [ecx + 0x1c]
cmp dword [eax], 0
je 0x4ff957
mov edx, dword [ecx + 0x2c]
mov eax, dword [edx]
test eax, eax
jle 0x4ff957
dec eax
mov dword [edx], eax
mov ecx, dword [ecx + 0x1c]
mov edx, dword [ecx]
lea eax, [edx + 1]
mov dword [ecx], eax
movzx eax, byte [edx]
jmp 0x4ff95c
mov eax, dword [ecx]
call dword [eax + 0x1c]
cmp eax, 0xffffffff
je 0x4ff967
mov byte [esi + 4], 0
jmp 0x4ff971
mov dword [esi], 0
mov byte [esi + 4], 1
mov ebx, dword [esp + 0x1c]
mov edi, dword [esp + 0x24]
test edi, edi
jne 0x4ffa4c
push ebx
mov ecx, esi
call fcn.00501460
test al, al
jne 0x4ffa3a
mov edi, dword [esp + 0x20]
cmp byte [esi + 4], 0
jne 0x4ff9d0
mov ecx, dword [esi]
test ecx, ecx
je 0x4ff9c6
mov eax, dword [ecx + 0x1c]
mov edx, dword [eax]
test edx, edx
je 0x4ff9b7
mov eax, dword [ecx + 0x2c]
cmp dword [eax], 0
jle 0x4ff9b7
movzx eax, byte [edx]
jmp 0x4ff9bc
mov eax, dword [ecx]
call dword [eax + 0x18]
cmp eax, 0xffffffff
je 0x4ff9c6
mov byte [esi + 5], al
jmp 0x4ff9cc
mov dword [esi], 0
mov byte [esi + 4], 1
mov al, byte [esi + 5]
cmp al, byte [esp + 0x64]
jne 0x4ffa32
mov ecx, dword [esi]
dec edi
mov byte [esp + 0x15], 1
test ecx, ecx
je 0x4ffa18
mov eax, dword [ecx + 0x1c]
cmp dword [eax], 0
je 0x4ffa08
mov edx, dword [ecx + 0x2c]
mov eax, dword [edx]
test eax, eax
jle 0x4ffa08
dec eax
mov dword [edx], eax
mov ecx, dword [ecx + 0x1c]
mov edx, dword [ecx]
lea eax, [edx + 1]
mov dword [ecx], eax
movzx eax, byte [edx]
jmp 0x4ffa0d
mov eax, dword [ecx]
call dword [eax + 0x1c]
cmp eax, 0xffffffff
je 0x4ffa18
mov byte [esi + 4], 0
jmp 0x4ffa22
mov dword [esi], 0
mov byte [esi + 4], 1
push ebx
mov ecx, esi
call fcn.00501460
test al, al
je 0x4ff995
mov dword [esp + 0x20], edi
mov edi, dword [esp + 0x24]
mov eax, dword [esp + 0x20]
test eax, eax
jns 0x4ffa4c
mov byte [ebp], 0x30
inc ebp
inc eax
mov dword [esp + 0x20], eax
push ebx
mov ecx, esi
call fcn.00501460
test al, al
jne 0x4ffb31
lea esp, [esp]
cmp byte [esi + 4], 0
jne 0x4ffa9b
mov ecx, dword [esi]
test ecx, ecx
je 0x4ffa91
mov eax, dword [ecx + 0x1c]
mov edx, dword [eax]
test edx, edx
je 0x4ffa82
mov eax, dword [ecx + 0x2c]
cmp dword [eax], 0
jle 0x4ffa82
movzx eax, byte [edx]
jmp 0x4ffa87
mov eax, dword [ecx]
call dword [eax + 0x18]
cmp eax, 0xffffffff
je 0x4ffa91
mov byte [esi + 5], al
jmp 0x4ffa97
mov dword [esi], 0
mov byte [esi + 4], 1
mov cl, byte [esp + 0x64]
lea eax, [esp + 0x64]
mov dl, byte [esi + 5]
test cl, cl
je 0x4ffabc
lea ebx, [ebx]
cmp cl, dl
je 0x4ffabc
mov cl, byte [eax + 1]
inc eax
test cl, cl
jne 0x4ffab0
lea ecx, [esp + 0x64]
sub eax, ecx
cmp eax, 0xa
jae 0x4ffb31
cmp edi, 0x24
jge 0x4ffad7
mov al, byte [eax + 0x5be4b0]
mov byte [ebp], al
inc ebp
inc edi
mov ecx, dword [esi]
mov byte [esp + 0x15], 1
test ecx, ecx
je 0x4ffb15
mov eax, dword [ecx + 0x1c]
cmp dword [eax], 0
je 0x4ffb05
mov edx, dword [ecx + 0x2c]
mov eax, dword [edx]
test eax, eax
jle 0x4ffb05
dec eax
mov dword [edx], eax
mov ecx, dword [ecx + 0x1c]
mov edx, dword [ecx]
lea eax, [edx + 1]
mov dword [ecx], eax
movzx eax, byte [edx]
jmp 0x4ffb0a
mov eax, dword [ecx]
call dword [eax + 0x1c]
cmp eax, 0xffffffff
je 0x4ffb15
mov byte [esi + 4], 0
jmp 0x4ffb1f
mov dword [esi], 0
mov byte [esi + 4], 1
push ebx
mov ecx, esi
call fcn.00501460
test al, al
je 0x4ffa60
jmp 0x4ffb3d
mov al, byte [esp + 0x15]
test al, al
je 0x4ffea3
push ebx
mov ecx, esi
call fcn.00501460
test al, al
jne 0x4ffe9f
cmp byte [esi + 4], al
jne 0x4ffb87
mov ecx, dword [esi]
test ecx, ecx
je 0x4ffb7d
mov eax, dword [ecx + 0x1c]
mov edx, dword [eax]
test edx, edx
je 0x4ffb6e
mov eax, dword [ecx + 0x2c]
cmp dword [eax], 0
jle 0x4ffb6e
movzx eax, byte [edx]
jmp 0x4ffb73
mov eax, dword [ecx]
call dword [eax + 0x18]
cmp eax, 0xffffffff
je 0x4ffb7d
mov byte [esi + 5], al
jmp 0x4ffb83
mov dword [esi], 0
mov byte [esi + 4], 1
mov al, byte [esi + 5]
cmp al, byte [esp + 0x71]
je 0x4ffbd8
cmp byte [esi + 4], 0
jne 0x4ffbcb
mov ecx, dword [esi]
test ecx, ecx
je 0x4ffbc1
mov eax, dword [ecx + 0x1c]
mov edx, dword [eax]
test edx, edx
je 0x4ffbb2
mov eax, dword [ecx + 0x2c]
cmp dword [eax], 0
jle 0x4ffbb2
movzx eax, byte [edx]
jmp 0x4ffbb7
mov eax, dword [ecx]
call dword [eax + 0x18]
cmp eax, 0xffffffff
je 0x4ffbc1
mov byte [esi + 5], al
jmp 0x4ffbc7
mov dword [esi], 0
mov byte [esi + 4], 1
mov al, byte [esi + 5]
cmp al, byte [esp + 0x70]
jne 0x4ffe9f
mov byte [ebp], 0x65
inc ebp
mov ecx, dword [esi]
test ecx, ecx
je 0x4ffc16
mov eax, dword [ecx + 0x1c]
cmp dword [eax], 0
je 0x4ffc06
mov edx, dword [ecx + 0x2c]
mov eax, dword [edx]
test eax, eax
jle 0x4ffc06
dec eax
mov dword [edx], eax
mov ecx, dword [ecx + 0x1c]
mov edx, dword [ecx]
lea eax, [edx + 1]
mov dword [ecx], eax
movzx eax, byte [edx]
jmp 0x4ffc0b
mov eax, dword [ecx]
call dword [eax + 0x1c]
cmp eax, 0xffffffff
je 0x4ffc16
mov byte [esi + 4], 0
jmp 0x4ffc20
mov dword [esi], 0
mov byte [esi + 4], 1
push dword [esp + 0x1c]
xor bl, bl
mov ecx, esi
mov byte [esp + 0x19], bl
xor edi, edi
call fcn.00501460
test al, al
jne 0x4ffd01
cmp byte [esi + 4], al
jne 0x4ffc70
mov ecx, dword [esi]
test ecx, ecx
je 0x4ffc6a
mov eax, dword [ecx + 0x1c]
mov edx, dword [eax]
test edx, edx
je 0x4ffc5b
mov eax, dword [ecx + 0x2c]
cmp dword [eax], edi
jle 0x4ffc5b
movzx eax, byte [edx]
jmp 0x4ffc60
mov eax, dword [ecx]
call dword [eax + 0x18]
cmp eax, 0xffffffff
je 0x4ffc6a
mov byte [esi + 5], al
jmp 0x4ffc6c
mov dword [esi], edi
mov byte [esi + 4], 1
mov al, byte [esi + 5]
cmp al, byte [esp + 0x6f]
jne 0x4ffc7f
mov byte [ebp], 0x2b
jmp 0x4ffcc2
cmp byte [esi + 4], 0
jne 0x4ffcb5
mov ecx, dword [esi]
test ecx, ecx
je 0x4ffcaf
mov eax, dword [ecx + 0x1c]
mov edx, dword [eax]
test edx, edx
je 0x4ffca0
mov eax, dword [ecx + 0x2c]
cmp dword [eax], edi
jle 0x4ffca0
movzx eax, byte [edx]
jmp 0x4ffca5
mov eax, dword [ecx]
call dword [eax + 0x18]
cmp eax, 0xffffffff
je 0x4ffcaf
mov byte [esi + 5], al
jmp 0x4ffcb1
mov dword [esi], edi
mov byte [esi + 4], 1
mov al, byte [esi + 5]
cmp al, byte [esp + 0x6e]
jne 0x4ffd01
mov byte [ebp], 0x2d
mov ecx, dword [esi]
inc ebp
test ecx, ecx
je 0x4ffcfb
mov eax, dword [ecx + 0x1c]
cmp dword [eax], edi
je 0x4ffceb
mov edx, dword [ecx + 0x2c]
mov eax, dword [edx]
test eax, eax
jle 0x4ffceb
dec eax
mov dword [edx], eax
mov ecx, dword [ecx + 0x1c]
mov edx, dword [ecx]
lea eax, [edx + 1]
mov dword [ecx], eax
movzx eax, byte [edx]
jmp 0x4ffcf0
mov eax, dword [ecx]
call dword [eax + 0x1c]
cmp eax, 0xffffffff
je 0x4ffcfb
mov byte [esi + 4], 0
jmp 0x4ffd01
mov byte [esi + 4], 1
mov dword [esi], edi
push dword [esp + 0x1c]
mov ecx, esi
call fcn.00501460
test al, al
jne 0x4ffdb5
cmp byte [esi + 4], 0
jne 0x4ffd4a
mov ecx, dword [esi]
test ecx, ecx
je 0x4ffd44
mov eax, dword [ecx + 0x1c]
mov edx, dword [eax]
test edx, edx
je 0x4ffd35
mov eax, dword [ecx + 0x2c]
cmp dword [eax], edi
jle 0x4ffd35
movzx eax, byte [edx]
jmp 0x4ffd3a
mov eax, dword [ecx]
call dword [eax + 0x18]
cmp eax, 0xffffffff
je 0x4ffd44
mov byte [esi + 5], al
jmp 0x4ffd46
mov dword [esi], edi
mov byte [esi + 4], 1
mov al, byte [esi + 5]
cmp al, byte [esp + 0x64]
jne 0x4ffdac
mov ecx, dword [esi]
mov bl, 1
mov byte [esp + 0x15], bl
test ecx, ecx
je 0x4ffd91
mov eax, dword [ecx + 0x1c]
cmp dword [eax], edi
je 0x4ffd81
mov edx, dword [ecx + 0x2c]
mov eax, dword [edx]
test eax, eax
jle 0x4ffd81
dec eax
mov dword [edx], eax
mov ecx, dword [ecx + 0x1c]
mov edx, dword [ecx]
lea eax, [edx + 1]
mov dword [ecx], eax
movzx eax, byte [edx]
jmp 0x4ffd86
mov eax, dword [ecx]
call dword [eax + 0x1c]
cmp eax, 0xffffffff
je 0x4ffd91
mov byte [esi + 4], 0
jmp 0x4ffd97
mov dword [esi], edi
mov byte [esi + 4], 1
push dword [esp + 0x1c]
mov ecx, esi
call fcn.00501460
test al, al
je 0x4ffd14
jmp 0x4ffdb0
test bl, bl
je 0x4ffdb5
mov byte [ebp], 0x30
inc ebp
mov ebx, dword [esp + 0x1c]
mov ecx, esi
push ebx
call fcn.00501460
test al, al
jne 0x4ffe9f
lea esp, [esp]
cmp byte [esi + 4], 0
jne 0x4ffe0b
mov ecx, dword [esi]
test ecx, ecx
je 0x4ffe01
mov eax, dword [ecx + 0x1c]
mov edx, dword [eax]
test edx, edx
je 0x4ffdf2
mov eax, dword [ecx + 0x2c]
cmp dword [eax], 0
jle 0x4ffdf2
movzx eax, byte [edx]
jmp 0x4ffdf7
mov eax, dword [ecx]
call dword [eax + 0x18]
cmp eax, 0xffffffff
je 0x4ffe01
mov byte [esi + 5], al
jmp 0x4ffe07
mov dword [esi], 0
mov byte [esi + 4], 1
mov cl, byte [esp + 0x64]
lea eax, [esp + 0x64]
mov dl, byte [esi + 5]
test cl, cl
je 0x4ffe2c
lea ebx, [ebx]
cmp cl, dl
je 0x4ffe2c
mov cl, byte [eax + 1]
inc eax
test cl, cl
jne 0x4ffe20
lea ecx, [esp + 0x64]
sub eax, ecx
cmp eax, 0xa
jae 0x4ffe9f
cmp edi, 8
jge 0x4ffe47
mov al, byte [eax + 0x5be4b0]
mov byte [ebp], al
inc ebp
inc edi
mov ecx, dword [esi]
mov byte [esp + 0x15], 1
test ecx, ecx
je 0x4ffe85
mov eax, dword [ecx + 0x1c]
cmp dword [eax], 0
je 0x4ffe75
mov edx, dword [ecx + 0x2c]
mov eax, dword [edx]
test eax, eax
jle 0x4ffe75
dec eax
mov dword [edx], eax
mov ecx, dword [ecx + 0x1c]
mov edx, dword [ecx]
lea eax, [edx + 1]
mov dword [ecx], eax
movzx eax, byte [edx]
jmp 0x4ffe7a
mov eax, dword [ecx]
call dword [eax + 0x1c]
cmp eax, 0xffffffff
je 0x4ffe85
mov byte [esi + 4], 0
jmp 0x4ffe8f
mov dword [esi], 0
mov byte [esi + 4], 1
push ebx
mov ecx, esi
call fcn.00501460
test al, al
je 0x4ffdd0
mov al, byte [esp + 0x15]
cmp byte [esp + 0x16], 0
jne 0x4ffeae
test al, al
jne 0x4ffeb2
mov ebp, dword [esp + 0x2c]
mov byte [ebp], 0
mov dword [esp + 0x80], 0xffffffff
cmp dword [esp + 0x60], 0x10
jb 0x4ffed4
push dword [esp + 0x4c]
call fcn.00564de3
add esp, 4
mov eax, dword [esp + 0x20]
mov dword [esp + 0x60], 0xf
mov dword [esp + 0x5c], 0
mov byte [esp + 0x4c], 0
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.00564de8
add esp, 0x70
ret