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

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffe8c
push ebx
push esi
push edi
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov dword [ebp - 0x14], 0xffffffff
mov dword [ebp - 0x18], 0xffffffff
mov dword [ebp - 0x1c], 0xffffffff
xor eax, eax
xor edx, edx
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x34], edx
xor ecx, ecx
xor eax, eax
mov dword [ebp - 0x38], ecx
mov dword [ebp - 0x44], eax
mov esi, dword [ebp - 0xc]
xor eax, eax
add esi, dword [ebp + 0x14]
mov dword [ebp - 0x4c], eax
lea ebx, [ebp - 0x120]
lea edx, [esi - 1]
mov dword [ebp - 0x50], edx
mov ecx, dword [ebp - 4]
mov dword [ebp - 0x58], ecx
mov ecx, dword [ebp - 0x58]
mov dword [ebp - 0x5c], ecx
test dword [ebp + 0x10], 0xe20f5a6f
je 0x4feaa8
mov eax, 0xfffffffd
jmp 0x4ff691
cmp dword [ebp - 0x5c], 0
je 0x4feac0
cmp dword [ebp - 0xc], 0
je 0x4feac0
cmp dword [ebp + 0xc], 0
jne 0x4feaca
cmp dword [ebp + 8], 0
jle 0x4feaca
mov eax, 0xfffffffe
jmp 0x4ff691
cmp dword [ebp + 8], 0
jge 0x4feada
mov eax, 0xfffffff1
jmp 0x4ff691
cmp dword [ebp + 0x14], 0
jl 0x4feae8
mov edx, dword [ebp + 0x14]
cmp edx, dword [ebp + 0x18]
jle 0x4feaf2
mov eax, 0xffffffe8
jmp 0x4ff691
mov edx, dword [ebp - 0x5c]
movzx ecx, word [edx + 0x18]
add ecx, dword [ebp - 0x5c]
mov dword [ebx + 0x28], ecx
mov ecx, dword [ebp - 0x5c]
movzx eax, word [ecx + 0x1c]
mov dword [ebx + 0x20], eax
xor eax, eax
mov edx, dword [ebp - 0x5c]
movzx ecx, word [edx + 0x1a]
mov dword [ebx + 0x24], ecx
mov dword [ebp - 0x54], eax
mov dword [ebx + 4], 0x989680
mov dword [ebx + 8], 0x989680
xor edx, edx
mov dword [ebx + 0x9c], edx
mov ecx, dword [ebp - 0x58]
mov eax, dword [ecx + 0x20]
mov dword [ebp - 0x40], eax
cmp dword [ebp - 8], 0
je 0x4feb93
mov edx, dword [ebp - 8]
mov ecx, dword [edx]
mov dword [ebp - 0x60], ecx
test byte [ebp - 0x60], 1
je 0x4feb54
mov eax, dword [ebp - 8]
mov edx, dword [eax + 4]
mov dword [ebp - 0x54], edx
test byte [ebp - 0x60], 2
je 0x4feb63
mov ecx, dword [ebp - 8]
mov eax, dword [ecx + 8]
mov dword [ebx + 4], eax
test byte [ebp - 0x60], 0x10
je 0x4feb72
mov edx, dword [ebp - 8]
mov ecx, dword [edx + 0x14]
mov dword [ebx + 8], ecx
test byte [ebp - 0x60], 4
je 0x4feb84
mov eax, dword [ebp - 8]
mov edx, dword [eax + 0xc]
mov dword [ebx + 0x9c], edx
test byte [ebp - 0x60], 8
je 0x4feb93
mov ecx, dword [ebp - 8]
mov eax, dword [ecx + 0x10]
mov dword [ebp - 0x40], eax
cmp dword [ebp - 0x40], 0
jne 0x4feba0
mov dword [ebp - 0x40], 0x5e15f8
mov edx, dword [ebp - 0x5c]
cmp dword [edx], 0x50435245
je 0x4febe5
lea ecx, [ebp - 0x14c]
push ecx
lea edx, [ebp - 0x174]
mov ecx, dword [ebp - 0x54]
mov eax, dword [ebp - 0x5c]
call fcn.00500b2c
mov dword [ebp - 0x5c], eax
cmp dword [ebp - 0x5c], 0
jne 0x4febd6
mov eax, 0xfffffffc
jmp 0x4ff691
cmp dword [ebp - 0x54], 0
je 0x4febe5
lea edx, [ebp - 0x14c]
mov dword [ebp - 0x54], edx
mov ecx, dword [ebp - 0x5c]
mov ecx, dword [ecx + 8]
or ecx, dword [ebp + 0x10]
test cl, 0x10
setne al
and eax, 1
mov dword [ebp - 0x28], eax
mov edx, dword [ebp - 0x5c]
test byte [edx + 0xc], 8
setne cl
and ecx, 1
mov dword [ebp - 0x2c], ecx
mov eax, dword [ebp - 0x5c]
test byte [eax + 0xa], 4
setne dl
and edx, 1
mov dword [ebp - 0x30], edx
mov edx, dword [ebp - 0x5c]
mov ecx, dword [ebp - 0x5c]
movzx eax, word [ecx + 0x1c]
movzx edx, word [edx + 0x1a]
imul edx
mov ecx, dword [ebp - 0x5c]
movzx edx, word [ecx + 0x18]
add edx, dword [ebp - 0x58]
add eax, edx
mov dword [ebx + 0x64], eax
mov eax, dword [ebp - 0xc]
mov dword [ebx + 0x68], eax
mov ecx, dword [ebp + 0x14]
mov dword [ebx + 0x88], ecx
mov ecx, dword [ebx + 0x68]
add ecx, dword [ebp + 0x18]
mov dword [ebx + 0x6c], ecx
mov eax, dword [ebx + 0x6c]
mov dword [ebp - 0x48], eax
mov edx, dword [ebp - 0x5c]
test byte [edx + 8], 0x20
setne cl
and ecx, 1
mov dword [ebx + 0x50], ecx
mov eax, dword [ebp - 0x5c]
test byte [eax + 9], 8
setne dl
and edx, 1
mov dword [ebx + 0x44], edx
mov dword [ebp - 0x3c], edx
mov eax, dword [ebp - 0x5c]
test byte [eax + 0xb], 0x20
setne cl
and ecx, 1
mov dword [ebx + 0x4c], ecx
mov ecx, dword [ebp - 0x5c]
test byte [ecx + 0xb], 2
setne al
and eax, 1
mov dword [ebx + 0x48], eax
test byte [ebp + 0x10], 0x80
setne dl
and edx, 1
mov dword [ebx + 0x3c], edx
test byte [ebp + 0x11], 1
setne cl
and ecx, 1
mov dword [ebx + 0x40], ecx
test byte [ebp + 0x11], 4
setne al
and eax, 1
mov dword [ebx + 0x54], eax
test byte [ebp + 0x13], 0x10
setne dl
and edx, 1
mov dword [ebx + 0x58], edx
test byte [ebp + 0x13], 8
je 0x4fecdb
mov ecx, 2
jmp 0x4fecea
test byte [ebp + 0x11], 0x80
je 0x4fece8
mov ecx, 1
jmp 0x4fecea
xor ecx, ecx
mov dword [ebx + 0x7c], ecx
xor eax, eax
mov dword [ebx + 0x5c], eax
xor edx, edx
mov dword [ebx + 0xa0], edx
xor ecx, ecx
mov dword [ebx + 0x98], ecx
mov eax, dword [ebp - 0x40]
mov dword [ebx + 0x30], eax
mov edx, dword [ebp - 0x40]
add edx, 0x340
mov dword [ebx + 0x34], edx
mov ecx, dword [ebp + 0x10]
and ecx, 0x1800000
sub ecx, 1
jb 0x4fed34
sub ecx, 0x7fffff
je 0x4fed59
sub ecx, 0x800000
je 0x4fed62
jmp 0x4fed69
mov eax, dword [ebp - 0x5c]
test dword [eax + 8], 0x1800000
je 0x4fed52
mov edx, dword [ebp - 0x5c]
test byte [edx + 0xa], 0x80
setne cl
and ecx, 1
mov dword [ebx + 0x60], ecx
jmp 0x4fed73
xor eax, eax
mov dword [ebx + 0x60], eax
jmp 0x4fed73
mov dword [ebx + 0x60], 1
jmp 0x4fed73
xor edx, edx
mov dword [ebx + 0x60], edx
jmp 0x4fed73
mov eax, 0xffffffe9
jmp 0x4ff691
test byte [ebp + 0x12], 0x70
jne 0x4fed81
mov edx, dword [ebp - 0x5c]
mov ecx, dword [edx + 8]
jmp 0x4fed84
mov ecx, dword [ebp + 0x10]
and ecx, 0x700000
cmp ecx, 0x300000
jg 0x4fedab
je 0x4fedd8
sub ecx, 1
jb 0x4fedbd
sub ecx, 0xfffff
je 0x4fedc6
sub ecx, 0x100000
je 0x4fedcf
jmp 0x4fedf3
sub ecx, 0x400000
je 0x4fede1
sub ecx, 0x100000
je 0x4fedea
jmp 0x4fedf3
mov dword [ebp - 0x20], 0xd0a
jmp 0x4fedfd
mov dword [ebp - 0x20], 0xd
jmp 0x4fedfd
mov dword [ebp - 0x20], 0xa
jmp 0x4fedfd
mov dword [ebp - 0x20], 0xd0a
jmp 0x4fedfd
mov dword [ebp - 0x20], 0xffffffff
jmp 0x4fedfd
mov dword [ebp - 0x20], 0xfffffffe
jmp 0x4fedfd
mov eax, 0xffffffe9
jmp 0x4ff691
cmp dword [ebp - 0x20], 0xfffffffe
jne 0x4fee0c
mov dword [ebx + 0x18], 2
jmp 0x4fee53
cmp dword [ebp - 0x20], 0
jge 0x4fee1b
mov dword [ebx + 0x18], 1
jmp 0x4fee53
xor edx, edx
mov dword [ebx + 0x18], edx
cmp dword [ebp - 0x20], 0xff
jle 0x4fee46
mov dword [ebx + 0x1c], 2
mov ecx, dword [ebp - 0x20]
sar ecx, 8
and cl, 0xff
mov byte [ebx + 0x2c], cl
mov al, byte [ebp - 0x20]
and al, 0xff
mov byte [ebx + 0x2d], al
jmp 0x4fee53
mov dword [ebx + 0x1c], 1
mov dl, byte [ebp - 0x20]
mov byte [ebx + 0x2c], dl
cmp dword [ebx + 0x7c], 0
je 0x4fee6c
mov ecx, dword [ebp - 0x5c]
test byte [ecx + 0xc], 1
je 0x4fee6c
mov eax, 0xfffffff3
jmp 0x4ff691
cmp dword [ebp - 0x3c], 0
je 0x4feef9
test byte [ebp + 0x11], 0x20
jne 0x4feef9
lea ecx, [ebp - 0x64]
mov edx, dword [ebp + 0x18]
mov eax, dword [ebp - 0xc]
call fcn.00500c68
mov dword [ebp - 0x68], eax
cmp dword [ebp - 0x68], 0
je 0x4feeca
cmp dword [ebp + 8], 2
jl 0x4feeaa
mov ecx, dword [ebp + 0xc]
mov eax, dword [ebp - 0x64]
mov dword [ecx], eax
mov edx, dword [ebp + 0xc]
mov eax, dword [ebp - 0x68]
mov dword [edx + 4], eax
cmp dword [ebp - 0x68], 5
jg 0x4feec0
cmp dword [ebx + 0x7c], 1
jle 0x4feec0
mov eax, 0xffffffe7
jmp 0x4ff691
mov eax, 0xfffffff6
jmp 0x4ff691
cmp dword [ebp + 0x14], 0
jle 0x4feef9
mov edx, dword [ebp + 0x14]
cmp edx, dword [ebp + 0x18]
jge 0x4feef9
mov ecx, dword [ebp - 0xc]
mov edi, dword [ebp + 0x14]
xor eax, eax
mov al, byte [ecx + edi]
and eax, 0xc0
cmp eax, 0x80
jne 0x4feef9
mov eax, 0xfffffff5
jmp 0x4ff691
mov eax, dword [ebp + 8]
mov ecx, 3
cdq
idiv ecx
mov eax, dword [ebp + 8]
sub eax, edx
mov dword [ebp - 0x10], eax
mov edx, dword [ebp - 0x5c]
movzx ecx, word [edx + 0x12]
test ecx, ecx
jle 0x4fef64
mov eax, dword [ebp - 0x10]
mov ecx, 3
cdq
idiv ecx
mov edx, dword [ebp - 0x5c]
movzx ecx, word [edx + 0x12]
cmp eax, ecx
jg 0x4fef64
mov eax, dword [ebp - 0x5c]
movzx ecx, word [eax + 0x12]
lea eax, [ecx + ecx*2]
add eax, 3
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x10]
shl eax, 2
call fcn.0047830c
mov dword [ebx + 0xc], eax
cmp dword [ebx + 0xc], 0
jne 0x4fef5b
mov eax, 0xfffffffa
jmp 0x4ff691
mov dword [ebp - 0x24], 1
jmp 0x4fef6a
mov edx, dword [ebp + 0xc]
mov dword [ebx + 0xc], edx
mov ecx, dword [ebp - 0x10]
mov dword [ebx + 0x10], ecx
mov eax, dword [ebp - 0x10]
add eax, eax
mov ecx, 3
cdq
idiv ecx
mov dword [ebx + 0x14], eax
xor ecx, ecx
mov dword [ebx + 0x38], ecx
mov dword [ebx + 0x84], 0xffffffff
cmp dword [ebx + 0xc], 0
je 0x4fefec
mov eax, dword [ebp - 0x10]
shl eax, 2
add eax, dword [ebx + 0xc]
mov dword [ebp - 0x6c], eax
mov edx, dword [ebp - 0x5c]
movzx ecx, word [edx + 0x10]
shl ecx, 2
mov eax, dword [ebp - 0x6c]
sub eax, ecx
mov dword [ebp - 0x70], eax
mov edx, dword [ebx + 0xc]
add edx, 8
cmp edx, dword [ebp - 0x70]
jbe 0x4fefd2
mov ecx, dword [ebx + 0xc]
add ecx, 8
mov dword [ebp - 0x70], ecx
jmp 0x4fefd2
mov eax, dword [ebp - 0x6c]
mov dword [eax], 0xffffffff
sub dword [ebp - 0x6c], 4
mov edx, dword [ebp - 0x6c]
cmp edx, dword [ebp - 0x70]
jae 0x4fefc9
mov ecx, dword [ebx + 0xc]
or eax, 0xffffffff
mov dword [ecx + 4], eax
mov edx, dword [ebx + 0xc]
mov dword [edx], eax
cmp dword [ebp - 0x28], 0
jne 0x4ff04b
mov ecx, dword [ebp - 0x5c]
test byte [ecx + 0xc], 2
je 0x4ff02d
mov ecx, dword [ebp - 0x5c]
movzx eax, word [ecx + 0x14]
and eax, 0xff
mov dword [ebp - 0x14], eax
mov edx, dword [ebp - 0x5c]
test byte [edx + 0x15], 1
setne cl
and ecx, 1
mov dword [ebp - 0x34], ecx
dec ecx
jne 0x4ff04b
mov eax, dword [ebx + 0x30]
mov edx, dword [ebp - 0x14]
xor ecx, ecx
mov cl, byte [eax + edx]
mov dword [ebp - 0x14], ecx
jmp 0x4ff04b
cmp dword [ebp - 0x2c], 0
jne 0x4ff04b
cmp dword [ebp - 0x54], 0
je 0x4ff04b
mov eax, dword [ebp - 0x54]
test byte [eax + 4], 1
je 0x4ff04b
mov edx, dword [ebp - 0x54]
add edx, 8
mov dword [ebp - 0x44], edx
mov ecx, dword [ebp - 0x5c]
test byte [ecx + 0xc], 4
je 0x4ff085
mov eax, dword [ebp - 0x5c]
movzx edx, word [eax + 0x16]
and edx, 0xff
mov dword [ebp - 0x18], edx
mov ecx, dword [ebp - 0x5c]
test byte [ecx + 0x17], 1
setne al
and eax, 1
mov dword [ebp - 0x38], eax
mov edx, dword [ebp - 0x40]
mov eax, dword [ebp - 0x18]
movzx edx, byte [edx + eax + 0x100]
mov dword [ebp - 0x1c], edx
mov ecx, dword [ebp - 0x48]
mov dword [ebp - 0x74], ecx
cmp dword [ebp - 0x30], 0
je 0x4ff186
cmp dword [ebp - 0x3c], 0
mov edi, esi
je 0x4ff123
jmp 0x4ff0bc
inc edi
jmp 0x4ff0a7
inc edi
cmp edi, dword [ebp - 0x48]
jae 0x4ff0bc
xor eax, eax
mov al, byte [edi]
and eax, 0xc0
cmp eax, 0x80
je 0x4ff0a6
cmp edi, dword [ebx + 0x6c]
jae 0x4ff183
cmp dword [ebx + 0x18], 0
je 0x4ff0f4
cmp edi, dword [ebx + 0x6c]
jae 0x4ff0e9
lea edx, [ebx + 0x1c]
push edx
mov ecx, dword [ebp - 0x3c]
push ecx
mov ecx, dword [ebx + 0x6c]
mov edx, dword [ebx + 0x18]
mov eax, edi
call fcn.00501628
test eax, eax
jne 0x4ff0ed
xor ecx, ecx
jmp 0x4ff11c
mov ecx, 1
jmp 0x4ff11c
mov eax, dword [ebx + 0x6c]
sub eax, dword [ebx + 0x1c]
cmp edi, eax
ja 0x4ff113
mov dl, byte [edi]
cmp dl, byte [ebx + 0x2c]
jne 0x4ff113
cmp dword [ebx + 0x1c], 1
je 0x4ff117
mov cl, byte [edi + 1]
cmp cl, byte [ebx + 0x2d]
je 0x4ff117
xor ecx, ecx
jmp 0x4ff11c
mov ecx, 1
test ecx, ecx
je 0x4ff0a3
jmp 0x4ff183
inc edi
cmp edi, dword [ebx + 0x6c]
jae 0x4ff183
cmp dword [ebx + 0x18], 0
je 0x4ff157
cmp edi, dword [ebx + 0x6c]
jae 0x4ff14c
lea eax, [ebx + 0x1c]
push eax
mov edx, dword [ebp - 0x3c]
push edx
mov ecx, dword [ebx + 0x6c]
mov edx, dword [ebx + 0x18]
mov eax, edi
call fcn.00501628
test eax, eax
jne 0x4ff150
xor ecx, ecx
jmp 0x4ff17f
mov ecx, 1
jmp 0x4ff17f
mov eax, dword [ebx + 0x6c]
sub eax, dword [ebx + 0x1c]
cmp edi, eax
ja 0x4ff176
mov dl, byte [edi]
cmp dl, byte [ebx + 0x2c]
jne 0x4ff176
cmp dword [ebx + 0x1c], 1
je 0x4ff17a
mov cl, byte [edi + 1]
cmp cl, byte [ebx + 0x2d]
je 0x4ff17a
xor ecx, ecx
jmp 0x4ff17f
mov ecx, 1
test ecx, ecx
je 0x4ff122
mov dword [ebp - 0x48], edi
mov eax, dword [ebp - 0x5c]
mov edx, dword [eax + 8]
or edx, dword [ebp + 0x10]
test edx, 0x4000000
jne 0x4ff37c
cmp dword [ebp - 0x14], 0
jl 0x4ff1e1
cmp dword [ebp - 0x34], 0
je 0x4ff1ca
jmp 0x4ff1aa
inc esi
cmp esi, dword [ebp - 0x48]
jae 0x4ff37c
xor ecx, ecx
mov cl, byte [esi]
mov eax, dword [ebx + 0x30]
xor edx, edx
mov dl, byte [eax + ecx]
cmp edx, dword [ebp - 0x14]
jne 0x4ff1a9
jmp 0x4ff37c
inc esi
cmp esi, dword [ebp - 0x48]
jae 0x4ff37c
xor ecx, ecx
mov cl, byte [esi]
cmp ecx, dword [ebp - 0x14]
jne 0x4ff1c9
jmp 0x4ff37c
cmp dword [ebp - 0x2c], 0
je 0x4ff32d
mov eax, dword [ebx + 0x68]
add eax, dword [ebp + 0x14]
cmp esi, eax
jbe 0x4ff37c
cmp dword [ebp - 0x3c], 0
je 0x4ff298
jmp 0x4ff220
inc esi
jmp 0x4ff209
inc esi
cmp esi, dword [ebp - 0x48]
jae 0x4ff220
xor edx, edx
mov dl, byte [esi]
and edx, 0xc0
cmp edx, 0x80
je 0x4ff208
cmp esi, dword [ebp - 0x48]
jae 0x4ff305
cmp dword [ebx + 0x18], 0
je 0x4ff259
mov edi, dword [ebx + 0x68]
cmp esi, edi
jbe 0x4ff24e
lea eax, [ebx + 0x1c]
mov ecx, edi
push eax
mov eax, esi
mov edx, dword [ebp - 0x3c]
push edx
mov edx, dword [ebx + 0x18]
call fcn.00501824
test eax, eax
jne 0x4ff252
xor ecx, ecx
jmp 0x4ff28d
mov ecx, 1
jmp 0x4ff28d
mov ecx, dword [ebx + 0x68]
add ecx, dword [ebx + 0x1c]
cmp esi, ecx
jb 0x4ff284
mov eax, dword [ebx + 0x1c]
neg eax
mov dl, byte [esi + eax]
cmp dl, byte [ebx + 0x2c]
jne 0x4ff284
cmp dword [ebx + 0x1c], 1
je 0x4ff288
mov ecx, dword [ebx + 0x1c]
neg ecx
mov al, byte [esi + ecx + 1]
cmp al, byte [ebx + 0x2d]
je 0x4ff288
xor ecx, ecx
jmp 0x4ff28d
mov ecx, 1
test ecx, ecx
je 0x4ff205
jmp 0x4ff305
inc esi
cmp esi, dword [ebp - 0x48]
jae 0x4ff305
cmp dword [ebx + 0x18], 0
je 0x4ff2cd
mov edi, dword [ebx + 0x68]
cmp esi, edi
jbe 0x4ff2c2
lea eax, [ebx + 0x1c]
mov ecx, edi
push eax
mov eax, esi
mov edx, dword [ebp - 0x3c]
push edx
mov edx, dword [ebx + 0x18]
call fcn.00501824
test eax, eax
jne 0x4ff2c6
xor ecx, ecx
jmp 0x4ff301
mov ecx, 1
jmp 0x4ff301
mov ecx, dword [ebx + 0x68]
add ecx, dword [ebx + 0x1c]
cmp esi, ecx
jb 0x4ff2f8
mov eax, dword [ebx + 0x1c]
neg eax
mov dl, byte [esi + eax]
cmp dl, byte [ebx + 0x2c]
jne 0x4ff2f8
cmp dword [ebx + 0x1c], 1
je 0x4ff2fc
mov ecx, dword [ebx + 0x1c]
neg ecx
mov al, byte [esi + ecx + 1]
cmp al, byte [ebx + 0x2d]
je 0x4ff2fc
xor ecx, ecx
jmp 0x4ff301
mov ecx, 1
test ecx, ecx
je 0x4ff297
xor eax, eax
mov al, byte [esi - 1]
cmp eax, 0xd
jne 0x4ff37c
mov eax, dword [ebx + 0x18]
cmp eax, 1
je 0x4ff31c
cmp eax, 2
jne 0x4ff37c
cmp esi, dword [ebp - 0x48]
jae 0x4ff37c
xor edx, edx
mov dl, byte [esi]
cmp edx, 0xa
jne 0x4ff37c
inc esi
jmp 0x4ff37c
cmp dword [ebp - 0x44], 0
je 0x4ff37c
cmp esi, dword [ebp - 0x48]
jae 0x4ff37c
xor eax, eax
mov al, byte [esi]
mov ecx, eax
and ecx, 7
mov edx, 1
shl edx, cl
shr eax, 3
mov ecx, dword [ebp - 0x44]
movzx eax, byte [ecx + eax]
and edx, eax
jne 0x4ff37c
inc esi
cmp dword [ebp - 0x3c], 0
je 0x4ff377
jmp 0x4ff360
inc esi
cmp esi, dword [ebp - 0x48]
jae 0x4ff377
xor edx, edx
mov dl, byte [esi]
and edx, 0xc0
cmp edx, 0x80
je 0x4ff35f
cmp esi, dword [ebp - 0x48]
jb 0x4ff338
mov ecx, dword [ebp - 0x74]
mov dword [ebp - 0x48], ecx
test byte [ebp + 0x13], 4
jne 0x4ff42d
cmp dword [ebx + 0x7c], 0
jne 0x4ff42d
cmp dword [ebp - 0x54], 0
je 0x4ff3b9
mov eax, dword [ebp - 0x54]
test byte [eax + 4], 2
je 0x4ff3b9
mov eax, dword [ebp - 0x54]
mov edx, dword [ebp - 0x48]
sub edx, esi
cmp edx, dword [eax + 0x28]
jae 0x4ff3b9
xor edi, edi
jmp 0x4ff59c
cmp dword [ebp - 0x18], 0
jl 0x4ff42d
mov eax, dword [ebp - 0x48]
sub eax, esi
cmp eax, 0x3e8
jge 0x4ff42d
cmp dword [ebp - 0x14], 0
jl 0x4ff3d8
mov eax, 1
jmp 0x4ff3da
xor eax, eax
add eax, esi
cmp eax, dword [ebp - 0x50]
jbe 0x4ff42d
cmp dword [ebp - 0x38], 0
je 0x4ff405
cmp eax, dword [ebp - 0x48]
jae 0x4ff41e
xor edx, edx
mov dl, byte [eax]
inc eax
cmp edx, dword [ebp - 0x18]
je 0x4ff3fb
cmp edx, dword [ebp - 0x1c]
jne 0x4ff3fe
dec eax
jmp 0x4ff41e
cmp eax, dword [ebp - 0x48]
jb 0x4ff3ec
jmp 0x4ff41e
cmp eax, dword [ebp - 0x48]
jae 0x4ff41e
mov cl, byte [eax]
xor edx, edx
mov dl, cl
inc eax
cmp edx, dword [ebp - 0x18]
jne 0x4ff419
dec eax
jmp 0x4ff41e
cmp eax, dword [ebp - 0x48]
jb 0x4ff40a
cmp eax, dword [ebp - 0x48]
jb 0x4ff42a
xor edi, edi
jmp 0x4ff59c
mov dword [ebp - 0x50], eax
mov dword [ebx + 0x70], esi
mov dword [ebx + 0x78], esi
xor eax, eax
mov dword [ebx], eax
xor edx, edx
mov dword [ebx + 0x8c], edx
xor ecx, ecx
mov dword [ebx + 0x80], ecx
push 0
push 2
push ebx
push 0
push 0
mov ecx, esi
mov edx, dword [ebx + 0x64]
mov eax, esi
call fcn.004ef51c
cmp dword [ebx + 0x5c], 0
mov edi, eax
je 0x4ff470
cmp dword [ebp - 0x4c], 0
jne 0x4ff470
mov eax, dword [ebx + 0x78]
mov dword [ebp - 0x4c], eax
mov edx, edi
cmp edx, 0xfffffc1e
jg 0x4ff48e
je 0x4ff4a6
sub edx, 0xfffffc1a
je 0x4ff4e3
sub edx, 3
je 0x4ff4b3
jmp 0x4ff59c
add edx, 0x3e1
sub edx, 2
jb 0x4ff4b3
sub edx, 0x3df
je 0x4ff4b3
jmp 0x4ff59c
cmp esi, dword [ebx + 0x70]
je 0x4ff4b3
mov ecx, dword [ebx + 0x70]
mov dword [ebp - 0x78], ecx
jmp 0x4ff4ea
lea ecx, [esi + 1]
mov dword [ebp - 0x78], ecx
cmp dword [ebp - 0x3c], 0
je 0x4ff4ea
jmp 0x4ff4c4
inc dword [ebp - 0x78]
mov eax, dword [ebp - 0x78]
cmp eax, dword [ebp - 0x48]
jae 0x4ff4ea
mov edx, dword [ebp - 0x78]
xor ecx, ecx
mov cl, byte [edx]
and ecx, 0xc0
cmp ecx, 0x80
je 0x4ff4c1
jmp 0x4ff4ea
xor edi, edi
jmp 0x4ff59c
xor edi, edi
cmp dword [ebp - 0x30], 0
je 0x4ff54d
cmp dword [ebx + 0x18], 0
je 0x4ff521
cmp esi, dword [ebx + 0x6c]
jae 0x4ff516
lea eax, [ebx + 0x1c]
push eax
mov edx, dword [ebp - 0x3c]
push edx
mov ecx, dword [ebx + 0x6c]
mov edx, dword [ebx + 0x18]
mov eax, esi
call fcn.00501628
test eax, eax
jne 0x4ff51a
xor ecx, ecx
jmp 0x4ff549
mov ecx, 1
jmp 0x4ff549
mov ecx, dword [ebx + 0x6c]
sub ecx, dword [ebx + 0x1c]
cmp esi, ecx
ja 0x4ff540
mov al, byte [esi]
cmp al, byte [ebx + 0x2c]
jne 0x4ff540
cmp dword [ebx + 0x1c], 1
je 0x4ff544
mov dl, byte [esi + 1]
cmp dl, byte [ebx + 0x2d]
je 0x4ff544
xor ecx, ecx
jmp 0x4ff549
mov ecx, 1
test ecx, ecx
jne 0x4ff59c
cmp dword [ebp - 0x28], 0
mov esi, dword [ebp - 0x78]
jne 0x4ff59c
cmp esi, dword [ebp - 0x48]
ja 0x4ff59c
xor eax, eax
mov al, byte [esi - 1]
cmp eax, 0xd
jne 0x4ff58f
cmp esi, dword [ebp - 0x48]
jae 0x4ff58f
xor edx, edx
mov dl, byte [esi]
cmp edx, 0xa
jne 0x4ff58f
mov ecx, dword [ebp - 0x5c]
test byte [ecx + 0xc], 0x20
jne 0x4ff58f
cmp dword [ebx + 0x18], 1
je 0x4ff58e
cmp dword [ebx + 0x18], 2
je 0x4ff58e
cmp dword [ebx + 0x1c], 2
jne 0x4ff58f
inc esi
xor ecx, ecx
mov dword [ebx + 0xa0], ecx
jmp 0x4ff085
cmp edi, 1
je 0x4ff5a9
cmp edi, 0xfffffc19
jne 0x4ff623
cmp dword [ebp - 0x24], 0
je 0x4ff5e9
cmp dword [ebp + 8], 4
jl 0x4ff5cf
mov ecx, dword [ebp + 8]
mov edx, dword [ebx + 0xc]
add ecx, 0xfffffffe
add edx, 8
shl ecx, 2
mov eax, dword [ebp + 0xc]
add eax, 8
call fcn.00478458
mov ecx, dword [ebx + 0x80]
cmp ecx, dword [ebp + 8]
jle 0x4ff5e1
mov dword [ebx + 0x38], 1
mov eax, dword [ebx + 0xc]
call fcn.00478350
cmp dword [ebx + 0x38], 0
je 0x4ff5f3
xor edi, edi
jmp 0x4ff600
mov edi, dword [ebx + 0x80]
sar edi, 1
jns 0x4ff600
adc edi, 0
cmp dword [ebp + 8], 2
jge 0x4ff60a
xor edi, edi
jmp 0x4ff673
mov eax, dword [ebx + 0x70]
mov edx, dword [ebp + 0xc]
sub eax, dword [ebx + 0x68]
mov dword [edx], eax
mov ecx, dword [ebx + 0x74]
mov esi, dword [ebp + 0xc]
sub ecx, dword [ebx + 0x68]
mov dword [esi + 4], ecx
jmp 0x4ff673
cmp dword [ebp - 0x24], 0
je 0x4ff631
mov eax, dword [ebx + 0xc]
call fcn.00478350
test edi, edi
je 0x4ff63e
cmp edi, 0xfffffff4
je 0x4ff63e
mov eax, edi
jmp 0x4ff691
cmp dword [ebp - 0x4c], 0
je 0x4ff670
xor edx, edx
mov dword [ebx + 0xa0], edx
cmp dword [ebp + 8], 1
jle 0x4ff669
mov ecx, dword [ebp - 0x4c]
mov eax, dword [ebp + 0xc]
sub ecx, dword [ebp - 0xc]
mov dword [eax], ecx
mov edx, dword [ebp - 0x48]
mov ecx, dword [ebp + 0xc]
sub edx, dword [ebp - 0xc]
mov dword [ecx + 4], edx
mov edi, 0xfffffff4
jmp 0x4ff673
or edi, 0xffffffff
cmp dword [ebp - 8], 0
je 0x4ff68f
mov eax, dword [ebp - 8]
test byte [eax], 0x20
je 0x4ff68f
mov edx, dword [ebp - 8]
mov ecx, dword [edx + 0x18]
mov ebx, dword [ebx + 0xa0]
mov dword [ecx], ebx
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x14