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

Disassembly:
push ebp
lea ebp, [esp - 0x5c]
sub esp, 0xb8
mov eax, dword [ebp + 0x64]
mov ecx, dword [eax + 0x164]
mov dword [ebp + 0x34], ecx
mov edx, dword [ebp + 0x64]
mov eax, dword [ebp + 0x6c]
cmp eax, dword [edx + 0x90]
jne 0x4fa78f
mov ecx, dword [ebp + 0x64]
add ecx, 0x120
mov dword [ebp + 0x3c], ecx
mov edx, dword [ebp + 0x64]
add edx, 0x124
mov dword [ebp + 0x28], edx
jmp 0x4fa7aa
mov eax, dword [ebp + 0x64]
mov ecx, dword [eax + 0x12c]
mov dword [ebp + 0x3c], ecx
mov edx, dword [ebp + 0x64]
mov eax, dword [edx + 0x12c]
add eax, 4
mov dword [ebp + 0x28], eax
mov ecx, dword [ebp + 0x3c]
mov edx, dword [ebp + 0x70]
mov dword [ecx], edx
mov eax, dword [ebp + 0x70]
mov dword [ebp + 0x54], eax
lea ecx, [ebp + 0x54]
push ecx
mov edx, dword [ebp + 0x74]
push edx
mov eax, dword [ebp + 0x70]
push eax
mov ecx, dword [ebp + 0x6c]
push ecx
mov edx, 4
shl edx, 0
mov eax, dword [ebp + 0x6c]
mov ecx, dword [eax + edx]
call ecx
add esp, 0x10
mov dword [ebp - 0x3c], eax
mov edx, dword [ebp + 0x28]
mov eax, dword [ebp + 0x54]
mov dword [edx], eax
mov ecx, dword [ebp - 0x3c]
mov dword [ebp + 0x18], ecx
mov edx, dword [ebp + 0x18]
add edx, 5
mov dword [ebp + 0x18], edx
cmp dword [ebp + 0x18], 0x12
ja case.default.0x4fa802
mov eax, dword [ebp + 0x18]
jmp dword [eax*4 + 0x4fb6b0]
movzx ecx, byte [ebp + 0x7c]
test ecx, ecx
je 0x4fa820
mov edx, dword [ebp + 0x78]
mov eax, dword [ebp + 0x70]
mov dword [edx], eax
xor eax, eax
jmp 0x4fb6a9
mov ecx, dword [ebp + 0x28]
mov edx, dword [ebp + 0x74]
mov dword [ecx], edx
mov eax, dword [ebp + 0x64]
cmp dword [eax + 0x3c], 0
je 0x4fa84f
mov byte [ebp + 0x3a], 0xa
push 1
lea ecx, [ebp + 0x3a]
push ecx
mov edx, dword [ebp + 0x64]
mov eax, dword [edx + 4]
push eax
mov ecx, dword [ebp + 0x64]
mov edx, dword [ecx + 0x3c]
call edx
add esp, 0xc
jmp 0x4fa870
mov eax, dword [ebp + 0x64]
cmp dword [eax + 0x50], 0
je 0x4fa870
mov ecx, dword [ebp + 0x74]
push ecx
mov edx, dword [ebp + 0x70]
push edx
mov eax, dword [ebp + 0x6c]
push eax
mov ecx, dword [ebp + 0x64]
push ecx
call fcn.004fe210
add esp, 0x10
cmp dword [ebp + 0x68], 0
jne 0x4fa880
mov eax, 3
jmp 0x4fb6a9
mov edx, dword [ebp + 0x64]
mov eax, dword [edx + 0x138]
cmp eax, dword [ebp + 0x68]
je 0x4fa898
mov eax, 0xd
jmp 0x4fb6a9
mov ecx, dword [ebp + 0x78]
mov edx, dword [ebp + 0x74]
mov dword [ecx], edx
xor eax, eax
jmp 0x4fb6a9
movzx eax, byte [ebp + 0x7c]
test eax, eax
je 0x4fa8be
mov ecx, dword [ebp + 0x78]
mov edx, dword [ebp + 0x70]
mov dword [ecx], edx
xor eax, eax
jmp 0x4fb6a9
cmp dword [ebp + 0x68], 0
jle 0x4fa8eb
mov eax, dword [ebp + 0x64]
mov ecx, dword [eax + 0x138]
cmp ecx, dword [ebp + 0x68]
je 0x4fa8dc
mov eax, 0xd
jmp 0x4fb6a9
mov edx, dword [ebp + 0x78]
mov eax, dword [ebp + 0x70]
mov dword [edx], eax
xor eax, eax
jmp 0x4fb6a9
mov eax, 3
jmp 0x4fb6a9
mov ecx, dword [ebp + 0x3c]
mov edx, dword [ebp + 0x54]
mov dword [ecx], edx
mov eax, 4
jmp 0x4fb6a9
movzx eax, byte [ebp + 0x7c]
test eax, eax
je 0x4fa91e
mov ecx, dword [ebp + 0x78]
mov edx, dword [ebp + 0x70]
mov dword [ecx], edx
xor eax, eax
jmp 0x4fb6a9
mov eax, 5
jmp 0x4fb6a9
movzx eax, byte [ebp + 0x7c]
test eax, eax
je 0x4fa93f
mov ecx, dword [ebp + 0x78]
mov edx, dword [ebp + 0x70]
mov dword [ecx], edx
xor eax, eax
jmp 0x4fb6a9
mov eax, 6
jmp 0x4fb6a9
mov eax, dword [ebp + 0x6c]
mov ecx, dword [ebp + 0x54]
sub ecx, dword [eax + 0x44]
push ecx
mov edx, dword [ebp + 0x6c]
mov eax, dword [ebp + 0x70]
add eax, dword [edx + 0x44]
push eax
mov ecx, dword [ebp + 0x6c]
push ecx
mov edx, dword [ebp + 0x6c]
mov eax, dword [edx + 0x30]
call eax
add esp, 0xc
mov byte [ebp + 0x47], al
movsx ecx, byte [ebp + 0x47]
test ecx, ecx
je 0x4fa9c0
mov edx, dword [ebp + 0x64]
cmp dword [edx + 0x3c], 0
je 0x4fa99a
push 1
lea eax, [ebp + 0x47]
push eax
mov ecx, dword [ebp + 0x64]
mov edx, dword [ecx + 4]
push edx
mov eax, dword [ebp + 0x64]
mov ecx, dword [eax + 0x3c]
call ecx
add esp, 0xc
jmp 0x4fa9bb
mov edx, dword [ebp + 0x64]
cmp dword [edx + 0x50], 0
je 0x4fa9bb
mov eax, dword [ebp + 0x54]
push eax
mov ecx, dword [ebp + 0x70]
push ecx
mov edx, dword [ebp + 0x6c]
push edx
mov eax, dword [ebp + 0x64]
push eax
call fcn.004fe210
add esp, 0x10
jmp 0x4fb669
mov ecx, dword [ebp + 0x6c]
mov edx, dword [ebp + 0x54]
sub edx, dword [ecx + 0x44]
push edx
mov eax, dword [ebp + 0x6c]
mov ecx, dword [ebp + 0x70]
add ecx, dword [eax + 0x44]
push ecx
mov edx, dword [ebp + 0x6c]
push edx
mov eax, dword [ebp + 0x34]
add eax, 0x50
push eax
call fcn.004fff20
add esp, 0x10
mov dword [ebp + 0xc], eax
cmp dword [ebp + 0xc], 0
jne 0x4fa9fa
mov eax, 1
jmp 0x4fb6a9
push 0
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 0x34]
push edx
mov eax, dword [ebp + 0x64]
push eax
call fcn.004ff800
add esp, 0x10
mov dword [ebp + 0x48], eax
mov ecx, dword [ebp + 0x34]
mov edx, dword [ebp + 0x34]
mov eax, dword [edx + 0x60]
mov dword [ecx + 0x5c], eax
mov ecx, dword [ebp + 0x34]
movzx edx, byte [ecx + 0x81]
test edx, edx
je 0x4faa3b
mov eax, dword [ebp + 0x34]
movzx ecx, byte [eax + 0x82]
test ecx, ecx
je 0x4faa64
cmp dword [ebp + 0x48], 0
jne 0x4faa4d
mov eax, 0xb
jmp 0x4fb6a9
mov edx, dword [ebp + 0x48]
movzx eax, byte [edx + 0x22]
test eax, eax
jne 0x4faa62
mov eax, 0x18
jmp 0x4fb6a9
jmp 0x4faab3
cmp dword [ebp + 0x48], 0
jne 0x4faab3
mov ecx, dword [ebp + 0x64]
cmp dword [ecx + 0x78], 0
je 0x4faa8d
push 0
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp + 0x64]
mov ecx, dword [eax + 4]
push ecx
mov edx, dword [ebp + 0x64]
mov eax, dword [edx + 0x78]
call eax
add esp, 0xc
jmp 0x4faaae
mov ecx, dword [ebp + 0x64]
cmp dword [ecx + 0x50], 0
je 0x4faaae
mov edx, dword [ebp + 0x54]
push edx
mov eax, dword [ebp + 0x70]
push eax
mov ecx, dword [ebp + 0x6c]
push ecx
mov edx, dword [ebp + 0x64]
push edx
call fcn.004fe210
add esp, 0x10
jmp 0x4fb669
mov eax, dword [ebp + 0x48]
movzx ecx, byte [eax + 0x20]
test ecx, ecx
je 0x4faac8
mov eax, 0xc
jmp 0x4fb6a9
mov edx, dword [ebp + 0x48]
cmp dword [edx + 0x1c], 0
je 0x4faadb
mov eax, 0xf
jmp 0x4fb6a9
mov eax, dword [ebp + 0x48]
cmp dword [eax + 4], 0
je 0x4fab69
mov ecx, dword [ebp + 0x64]
movzx edx, byte [ecx + 0x134]
test edx, edx
jne 0x4fab41
mov eax, dword [ebp + 0x64]
cmp dword [eax + 0x78], 0
je 0x4fab1b
push 0
mov ecx, dword [ebp + 0x48]
mov edx, dword [ecx]
push edx
mov eax, dword [ebp + 0x64]
mov ecx, dword [eax + 4]
push ecx
mov edx, dword [ebp + 0x64]
mov eax, dword [edx + 0x78]
call eax
add esp, 0xc
jmp 0x4fab3c
mov ecx, dword [ebp + 0x64]
cmp dword [ecx + 0x50], 0
je 0x4fab3c
mov edx, dword [ebp + 0x54]
push edx
mov eax, dword [ebp + 0x70]
push eax
mov ecx, dword [ebp + 0x6c]
push ecx
mov edx, dword [ebp + 0x64]
push edx
call fcn.004fe210
add esp, 0x10
jmp 0x4fb669
push 0
mov eax, dword [ebp + 0x48]
push eax
mov ecx, dword [ebp + 0x64]
push ecx
call fcn.004fa570
add esp, 0xc
mov dword [ebp - 0x24], eax
cmp dword [ebp - 0x24], 0
je 0x4fab64
mov eax, dword [ebp - 0x24]
jmp 0x4fb6a9
jmp 0x4fac0d
mov edx, dword [ebp + 0x64]
cmp dword [edx + 0x70], 0
je 0x4fabec
mov eax, dword [ebp + 0x48]
mov byte [eax + 0x20], 1
mov ecx, dword [ebp + 0x64]
push ecx
call fcn.004fe300
add esp, 4
mov dword [ebp - 0x2c], eax
mov edx, dword [ebp + 0x48]
mov byte [edx + 0x20], 0
cmp dword [ebp - 0x2c], 0
jne 0x4fab9f
mov eax, 1
jmp 0x4fb6a9
mov eax, dword [ebp + 0x48]
mov ecx, dword [eax + 0x18]
push ecx
mov edx, dword [ebp + 0x48]
mov eax, dword [edx + 0x10]
push eax
mov ecx, dword [ebp + 0x48]
mov edx, dword [ecx + 0x14]
push edx
mov eax, dword [ebp - 0x2c]
push eax
mov ecx, dword [ebp + 0x64]
mov edx, dword [ecx + 0x74]
push edx
mov eax, dword [ebp + 0x64]
mov ecx, dword [eax + 0x70]
call ecx
add esp, 0x14
test eax, eax
jne 0x4fabd8
mov eax, 0x15
jmp 0x4fb6a9
mov edx, dword [ebp + 0x64]
mov eax, dword [ebp + 0x64]
mov ecx, dword [eax + 0x1b0]
mov dword [edx + 0x1ac], ecx
jmp 0x4fac0d
mov edx, dword [ebp + 0x64]
cmp dword [edx + 0x50], 0
je 0x4fac0d
mov eax, dword [ebp + 0x54]
push eax
mov ecx, dword [ebp + 0x70]
push ecx
mov edx, dword [ebp + 0x6c]
push edx
mov eax, dword [ebp + 0x64]
push eax
call fcn.004fe210
add esp, 0x10
jmp 0x4fb669
mov ecx, dword [ebp + 0x64]
cmp dword [ecx + 0x170], 0
je 0x4fac40
mov edx, dword [ebp + 0x64]
mov eax, dword [edx + 0x170]
mov dword [ebp + 0x58], eax
mov ecx, dword [ebp + 0x64]
mov edx, dword [ecx + 0x170]
mov eax, dword [ebp + 0x64]
mov ecx, dword [edx]
mov dword [eax + 0x170], ecx
jmp 0x4faca4
push 0x30
mov edx, dword [ebp + 0x64]
mov eax, dword [edx + 0xc]
call eax
add esp, 4
mov dword [ebp + 0x58], eax
cmp dword [ebp + 0x58], 0
jne 0x4fac60
mov eax, 1
jmp 0x4fb6a9
push 0x20
mov ecx, dword [ebp + 0x64]
mov edx, dword [ecx + 0xc]
call edx
add esp, 4
mov ecx, dword [ebp + 0x58]
mov dword [ecx + 0x24], eax
mov edx, dword [ebp + 0x58]
cmp dword [edx + 0x24], 0
jne 0x4fac95
mov eax, dword [ebp + 0x58]
push eax
mov ecx, dword [ebp + 0x64]
mov edx, dword [ecx + 0x14]
call edx
add esp, 4
mov eax, 1
jmp 0x4fb6a9
mov eax, dword [ebp + 0x58]
mov ecx, dword [eax + 0x24]
add ecx, 0x20
mov edx, dword [ebp + 0x58]
mov dword [edx + 0x28], ecx
mov eax, dword [ebp + 0x58]
mov dword [eax + 0x2c], 0
mov ecx, dword [ebp + 0x58]
mov edx, dword [ebp + 0x64]
mov eax, dword [edx + 0x16c]
mov dword [ecx], eax
mov ecx, dword [ebp + 0x64]
mov edx, dword [ebp + 0x58]
mov dword [ecx + 0x16c], edx
mov eax, dword [ebp + 0x58]
mov dword [eax + 0x10], 0
mov ecx, dword [ebp + 0x58]
mov dword [ecx + 0x14], 0
mov edx, dword [ebp + 0x6c]
mov eax, dword [ebp + 0x70]
add eax, dword [edx + 0x44]
mov ecx, dword [ebp + 0x58]
mov dword [ecx + 4], eax
mov edx, dword [ebp + 0x58]
mov eax, dword [edx + 4]
push eax
mov ecx, dword [ebp + 0x6c]
push ecx
mov edx, dword [ebp + 0x6c]
mov eax, dword [edx + 0x20]
call eax
add esp, 8
mov ecx, dword [ebp + 0x58]
mov dword [ecx + 8], eax
mov edx, dword [ebp + 0x64]
mov eax, dword [edx + 0x138]
add eax, 1
mov ecx, dword [ebp + 0x64]
mov dword [ecx + 0x138], eax
mov edx, dword [ebp + 0x58]
mov eax, dword [edx + 4]
mov ecx, dword [ebp + 0x58]
add eax, dword [ecx + 8]
mov dword [ebp - 0x38], eax
mov edx, dword [ebp + 0x58]
mov eax, dword [edx + 4]
mov dword [ebp - 0x14], eax
mov ecx, dword [ebp + 0x58]
mov edx, dword [ecx + 0x24]
mov dword [ebp + 0x10], edx
mov eax, dword [ebp + 0x58]
mov ecx, dword [eax + 0x28]
sub ecx, 1
push ecx
lea edx, [ebp + 0x10]
push edx
mov eax, dword [ebp - 0x38]
push eax
lea ecx, [ebp - 0x14]
push ecx
mov edx, dword [ebp + 0x6c]
push edx
mov eax, dword [ebp + 0x6c]
mov ecx, dword [eax + 0x3c]
call ecx
add esp, 0x14
mov edx, dword [ebp + 0x58]
mov eax, dword [ebp + 0x10]
sub eax, dword [edx + 0x24]
mov dword [ebp - 0x34], eax
mov ecx, dword [ebp - 0x14]
cmp ecx, dword [ebp - 0x38]
jne 0x4fad81
mov edx, dword [ebp + 0x58]
mov eax, dword [ebp - 0x34]
mov dword [edx + 0x18], eax
jmp 0x4fadde
mov ecx, dword [ebp + 0x58]
mov edx, dword [ebp + 0x58]
mov eax, dword [ecx + 0x28]
sub eax, dword [edx + 0x24]
shl eax, 1
mov dword [ebp - 0x1c], eax
mov ecx, dword [ebp - 0x1c]
push ecx
mov edx, dword [ebp + 0x58]
mov eax, dword [edx + 0x24]
push eax
mov ecx, dword [ebp + 0x64]
mov edx, dword [ecx + 0x10]
call edx
add esp, 8
mov dword [ebp + 0x14], eax
cmp dword [ebp + 0x14], 0
jne 0x4fadbb
mov eax, 1
jmp 0x4fb6a9
mov eax, dword [ebp + 0x58]
mov ecx, dword [ebp + 0x14]
mov dword [eax + 0x24], ecx
mov edx, dword [ebp + 0x14]
add edx, dword [ebp - 0x1c]
mov eax, dword [ebp + 0x58]
mov dword [eax + 0x28], edx
mov ecx, dword [ebp + 0x14]
add ecx, dword [ebp - 0x34]
mov dword [ebp + 0x10], ecx
jmp 0x4fad3d
mov edx, dword [ebp + 0x58]
mov eax, dword [ebp + 0x58]
mov ecx, dword [eax + 0x24]
mov dword [edx + 0xc], ecx
mov edx, dword [ebp + 0x10]
mov byte [edx], 0
mov eax, dword [ebp + 0x58]
add eax, 0x2c
push eax
mov ecx, dword [ebp + 0x58]
add ecx, 0xc
push ecx
mov edx, dword [ebp + 0x70]
push edx
mov eax, dword [ebp + 0x6c]
push eax
mov ecx, dword [ebp + 0x64]
push ecx
call fcn.004fbbe0
add esp, 0x14
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x4fae23
mov eax, dword [ebp - 8]
jmp 0x4fb6a9
mov edx, dword [ebp + 0x64]
cmp dword [edx + 0x34], 0
je 0x4fae51
mov eax, dword [ebp + 0x64]
mov ecx, dword [eax + 0x188]
push ecx
mov edx, dword [ebp + 0x58]
mov eax, dword [edx + 0xc]
push eax
mov ecx, dword [ebp + 0x64]
mov edx, dword [ecx + 4]
push edx
mov eax, dword [ebp + 0x64]
mov ecx, dword [eax + 0x34]
call ecx
add esp, 0xc
jmp 0x4fae72
mov edx, dword [ebp + 0x64]
cmp dword [edx + 0x50], 0
je 0x4fae72
mov eax, dword [ebp + 0x54]
push eax
mov ecx, dword [ebp + 0x70]
push ecx
mov edx, dword [ebp + 0x6c]
push edx
mov eax, dword [ebp + 0x64]
push eax
call fcn.004fe210
add esp, 0x10
mov ecx, dword [ebp + 0x64]
add ecx, 0x1a0
push ecx
call fcn.004ffdb0
add esp, 4
jmp 0x4fb669
mov edx, dword [ebp + 0x6c]
mov eax, dword [ebp + 0x70]
add eax, dword [edx + 0x44]
mov dword [ebp], eax
mov dword [ebp + 0x24], 0
mov byte [ebp + 0x53], 1
mov ecx, dword [ebp]
push ecx
mov edx, dword [ebp + 0x6c]
push edx
mov eax, dword [ebp + 0x6c]
mov ecx, dword [eax + 0x20]
call ecx
add esp, 8
add eax, dword [ebp]
push eax
mov edx, dword [ebp]
push edx
mov eax, dword [ebp + 0x6c]
push eax
mov ecx, dword [ebp + 0x64]
add ecx, 0x1a0
push ecx
call fcn.004fff20
add esp, 0x10
mov dword [ebp - 0x5c], eax
cmp dword [ebp - 0x5c], 0
jne 0x4faee4
mov eax, 1
jmp 0x4fb6a9
mov edx, dword [ebp + 0x64]
mov eax, dword [ebp + 0x64]
mov ecx, dword [eax + 0x1ac]
mov dword [edx + 0x1b0], ecx
lea edx, [ebp + 0x24]
push edx
lea eax, [ebp - 0x5c]
push eax
mov ecx, dword [ebp + 0x70]
push ecx
mov edx, dword [ebp + 0x6c]
push edx
mov eax, dword [ebp + 0x64]
push eax
call fcn.004fbbe0
add esp, 0x14
mov dword [ebp - 0x30], eax
cmp dword [ebp - 0x30], 0
je 0x4faf23
mov eax, dword [ebp - 0x30]
jmp 0x4fb6a9
mov ecx, dword [ebp + 0x64]
mov edx, dword [ebp + 0x64]
mov eax, dword [edx + 0x1ac]
mov dword [ecx + 0x1b0], eax
mov ecx, dword [ebp + 0x64]
cmp dword [ecx + 0x34], 0
je 0x4faf62
mov edx, dword [ebp + 0x64]
mov eax, dword [edx + 0x188]
push eax
mov ecx, dword [ebp - 0x5c]
push ecx
mov edx, dword [ebp + 0x64]
mov eax, dword [edx + 4]
push eax
mov ecx, dword [ebp + 0x64]
mov edx, dword [ecx + 0x34]
call edx
add esp, 0xc
mov byte [ebp + 0x53], 0
mov eax, dword [ebp + 0x64]
cmp dword [eax + 0x38], 0
je 0x4faf98
mov ecx, dword [ebp + 0x64]
cmp dword [ecx + 0x34], 0
je 0x4faf7e
mov edx, dword [ebp + 0x3c]
mov eax, dword [ebp + 0x28]
mov ecx, dword [eax]
mov dword [edx], ecx
mov edx, dword [ebp - 0x5c]
push edx
mov eax, dword [ebp + 0x64]
mov ecx, dword [eax + 4]
push ecx
mov edx, dword [ebp + 0x64]
mov eax, dword [edx + 0x38]
call eax
add esp, 8
mov byte [ebp + 0x53], 0
movzx ecx, byte [ebp + 0x53]
test ecx, ecx
je 0x4fafc1
mov edx, dword [ebp + 0x64]
cmp dword [edx + 0x50], 0
je 0x4fafc1
mov eax, dword [ebp + 0x54]
push eax
mov ecx, dword [ebp + 0x70]
push ecx
mov edx, dword [ebp + 0x6c]
push edx
mov eax, dword [ebp + 0x64]
push eax
call fcn.004fe210
add esp, 0x10
mov ecx, dword [ebp + 0x64]
add ecx, 0x1a0
push ecx
call fcn.004ffdb0
add esp, 4
cmp dword [ebp + 0x24], 0
je 0x4fb036
mov edx, dword [ebp + 0x24]
mov dword [ebp + 0x20], edx
mov eax, dword [ebp + 0x64]
cmp dword [eax + 0x68], 0
je 0x4fb002
mov ecx, dword [ebp + 0x20]
mov edx, dword [ecx]
mov eax, dword [edx]
push eax
mov ecx, dword [ebp + 0x64]
mov edx, dword [ecx + 4]
push edx
mov eax, dword [ebp + 0x64]
mov ecx, dword [eax + 0x68]
call ecx
add esp, 8
mov edx, dword [ebp + 0x24]
mov eax, dword [edx + 4]
mov dword [ebp + 0x24], eax
mov ecx, dword [ebp + 0x20]
mov edx, dword [ebp + 0x64]
mov eax, dword [edx + 0x178]
mov dword [ecx + 4], eax
mov ecx, dword [ebp + 0x64]
mov edx, dword [ebp + 0x20]
mov dword [ecx + 0x178], edx
mov eax, dword [ebp + 0x20]
mov ecx, dword [eax]
mov edx, dword [ebp + 0x20]
mov eax, dword [edx + 8]
mov dword [ecx + 4], eax
jmp 0x4fafd3
mov ecx, dword [ebp + 0x64]
cmp dword [ecx + 0x138], 0
jne 0x4fb05f
mov edx, dword [ebp + 0x78]
push edx
mov eax, dword [ebp + 0x74]
push eax
mov ecx, dword [ebp + 0x54]
push ecx
mov edx, dword [ebp + 0x64]
push edx
call fcn.004f7410
add esp, 0x10
jmp 0x4fb6a9
jmp 0x4fb669
mov eax, dword [ebp + 0x64]
mov ecx, dword [eax + 0x138]
cmp ecx, dword [ebp + 0x68]
jne 0x4fb081
mov eax, 0xd
jmp 0x4fb6a9
mov edx, dword [ebp + 0x64]
mov eax, dword [edx + 0x16c]
mov dword [ebp + 0x4c], eax
mov ecx, dword [ebp + 0x64]
mov edx, dword [ebp + 0x4c]
mov eax, dword [edx]
mov dword [ecx + 0x16c], eax
mov ecx, dword [ebp + 0x4c]
mov edx, dword [ebp + 0x64]
mov eax, dword [edx + 0x170]
mov dword [ecx], eax
mov ecx, dword [ebp + 0x64]
mov edx, dword [ebp + 0x4c]
mov dword [ecx + 0x170], edx
mov eax, dword [ebp + 0x6c]
mov ecx, dword [eax + 0x44]
mov edx, dword [ebp + 0x70]
lea eax, [edx + ecx*2]
mov dword [ebp + 8], eax
mov ecx, dword [ebp + 8]
push ecx
mov edx, dword [ebp + 0x6c]
push edx
mov eax, dword [ebp + 0x6c]
mov ecx, dword [eax + 0x20]
call ecx
add esp, 8
mov dword [ebp - 0xc], eax
mov edx, dword [ebp + 0x4c]
mov eax, dword [ebp - 0xc]
cmp eax, dword [edx + 8]
jne 0x4fb105
mov ecx, dword [ebp - 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
mov eax, dword [ebp + 0x4c]
mov ecx, dword [eax + 4]
push ecx
call fcn.004c0615
add esp, 0xc
mov dword [ebp - 0x44], eax
cmp dword [ebp - 0x44], 0
je 0x4fb117
mov edx, dword [ebp + 0x3c]
mov eax, dword [ebp + 8]
mov dword [edx], eax
mov eax, 7
jmp 0x4fb6a9
mov ecx, dword [ebp + 0x64]
mov edx, dword [ecx + 0x138]
sub edx, 1
mov eax, dword [ebp + 0x64]
mov dword [eax + 0x138], edx
mov ecx, dword [ebp + 0x64]
cmp dword [ecx + 0x38], 0
je 0x4fb212
mov edx, dword [ebp + 0x4c]
mov eax, dword [edx + 0x10]
mov dword [ebp + 0x30], eax
mov ecx, dword [ebp + 0x64]
movzx edx, byte [ecx + 0xec]
test edx, edx
je 0x4fb1f7
cmp dword [ebp + 0x30], 0
je 0x4fb1f7
mov eax, dword [ebp + 0x4c]
mov ecx, dword [eax + 0xc]
mov edx, dword [ebp + 0x4c]
add ecx, dword [edx + 0x1c]
mov dword [ebp + 0x40], ecx
mov eax, dword [ebp + 0x30]
movsx ecx, byte [eax]
test ecx, ecx
je 0x4fb195
mov edx, dword [ebp + 0x40]
mov eax, dword [ebp + 0x30]
mov cl, byte [eax]
mov byte [edx], cl
mov edx, dword [ebp + 0x40]
add edx, 1
mov dword [ebp + 0x40], edx
mov eax, dword [ebp + 0x30]
add eax, 1
mov dword [ebp + 0x30], eax
jmp 0x4fb16d
mov ecx, dword [ebp + 0x4c]
mov edx, dword [ecx + 0x14]
mov dword [ebp + 0x1c], edx
mov eax, dword [ebp + 0x64]
movzx ecx, byte [eax + 0xed]
test ecx, ecx
je 0x4fb1f1
cmp dword [ebp + 0x1c], 0
je 0x4fb1f1
mov edx, dword [ebp + 0x40]
mov eax, dword [ebp + 0x64]
mov cl, byte [eax + 0x1d8]
mov byte [edx], cl
mov edx, dword [ebp + 0x40]
add edx, 1
mov dword [ebp + 0x40], edx
mov eax, dword [ebp + 0x1c]
movsx ecx, byte [eax]
test ecx, ecx
je 0x4fb1f1
mov edx, dword [ebp + 0x40]
mov eax, dword [ebp + 0x1c]
mov cl, byte [eax]
mov byte [edx], cl
mov edx, dword [ebp + 0x40]
add edx, 1
mov dword [ebp + 0x40], edx
mov eax, dword [ebp + 0x1c]
add eax, 1
mov dword [ebp + 0x1c], eax
jmp 0x4fb1c9
mov ecx, dword [ebp + 0x40]
mov byte [ecx], 0
mov edx, dword [ebp + 0x4c]
mov eax, dword [edx + 0xc]
push eax
mov ecx, dword [ebp + 0x64]
mov edx, dword [ecx + 4]
push edx
mov eax, dword [ebp + 0x64]
mov ecx, dword [eax + 0x38]
call ecx
add esp, 8
jmp 0x4fb233
mov edx, dword [ebp + 0x64]
cmp dword [edx + 0x50], 0
je 0x4fb233
mov eax, dword [ebp + 0x54]
push eax
mov ecx, dword [ebp + 0x70]
push ecx
mov edx, dword [ebp + 0x6c]
push edx
mov eax, dword [ebp + 0x64]
push eax
call fcn.004fe210
add esp, 0x10
mov ecx, dword [ebp + 0x4c]
cmp dword [ecx + 0x2c], 0
je 0x4fb2a2
mov edx, dword [ebp + 0x4c]
mov eax, dword [edx + 0x2c]
mov dword [ebp + 0x2c], eax
mov ecx, dword [ebp + 0x64]
cmp dword [ecx + 0x68], 0
je 0x4fb268
mov edx, dword [ebp + 0x2c]
mov eax, dword [edx]
mov ecx, dword [eax]
push ecx
mov edx, dword [ebp + 0x64]
mov eax, dword [edx + 4]
push eax
mov ecx, dword [ebp + 0x64]
mov edx, dword [ecx + 0x68]
call edx
add esp, 8
mov eax, dword [ebp + 0x4c]
mov ecx, dword [eax + 0x2c]
mov edx, dword [ebp + 0x4c]
mov eax, dword [ecx + 4]
mov dword [edx + 0x2c], eax
mov ecx, dword [ebp + 0x2c]
mov edx, dword [ebp + 0x64]
mov eax, dword [edx + 0x178]
mov dword [ecx + 4], eax
mov ecx, dword [ebp + 0x64]
mov edx, dword [ebp + 0x2c]
mov dword [ecx + 0x178], edx
mov eax, dword [ebp + 0x2c]
mov ecx, dword [eax]
mov edx, dword [ebp + 0x2c]
mov eax, dword [edx + 8]
mov dword [ecx + 4], eax
jmp 0x4fb233
mov ecx, dword [ebp + 0x64]
cmp dword [ecx + 0x138], 0
jne 0x4fb2cb
mov edx, dword [ebp + 0x78]
push edx
mov eax, dword [ebp + 0x74]
push eax
mov ecx, dword [ebp + 0x54]
push ecx
mov edx, dword [ebp + 0x64]
push edx
call fcn.004f7410
add esp, 0x10
jmp 0x4fb6a9
jmp 0x4fb669
mov eax, dword [ebp + 0x70]
push eax
mov ecx, dword [ebp + 0x6c]
push ecx
mov edx, dword [ebp + 0x6c]
mov eax, dword [edx + 0x2c]
call eax
add esp, 8
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
jge 0x4fb2f6
mov eax, 0xe
jmp 0x4fb6a9
mov ecx, dword [ebp + 0x64]
cmp dword [ecx + 0x3c], 0
je 0x4fb328
lea edx, [ebp - 0x40]
push edx
mov eax, dword [ebp - 0x10]
push eax
call fcn.00503f60
add esp, 8
push eax
lea ecx, [ebp - 0x40]
push ecx
mov edx, dword [ebp + 0x64]
mov eax, dword [edx + 4]
push eax
mov ecx, dword [ebp + 0x64]
mov edx, dword [ecx + 0x3c]
call edx
add esp, 0xc
jmp 0x4fb349
mov eax, dword [ebp + 0x64]
cmp dword [eax + 0x50], 0
je 0x4fb349
mov ecx, dword [ebp + 0x54]
push ecx
mov edx, dword [ebp + 0x70]
push edx
mov eax, dword [ebp + 0x6c]
push eax
mov ecx, dword [ebp + 0x64]
push ecx
call fcn.004fe210
add esp, 0x10
jmp 0x4fb669
mov eax, 0x11
jmp 0x4fb6a9
mov edx, dword [ebp + 0x64]
cmp dword [edx + 0x3c], 0
je 0x4fb37f
mov byte [ebp + 0x3b], 0xa
push 1
lea eax, [ebp + 0x3b]
push eax
mov ecx, dword [ebp + 0x64]
mov edx, dword [ecx + 4]
push edx
mov eax, dword [ebp + 0x64]
mov ecx, dword [eax + 0x3c]
call ecx
add esp, 0xc
jmp 0x4fb3a0
mov edx, dword [ebp + 0x64]
cmp dword [edx + 0x50], 0
je 0x4fb3a0
mov eax, dword [ebp + 0x54]
push eax
mov ecx, dword [ebp + 0x70]
push ecx
mov edx, dword [ebp + 0x6c]
push edx
mov eax, dword [ebp + 0x64]
push eax
call fcn.004fe210
add esp, 0x10
jmp 0x4fb669
mov ecx, dword [ebp + 0x64]
cmp dword [ecx + 0x48], 0
je 0x4fb3c2
mov edx, dword [ebp + 0x64]
mov eax, dword [edx + 4]
push eax
mov ecx, dword [ebp + 0x64]
mov edx, dword [ecx + 0x48]
call edx
add esp, 4
jmp 0x4fb3e3
mov eax, dword [ebp + 0x64]
cmp dword [eax + 0x50], 0
je 0x4fb3e3
mov ecx, dword [ebp + 0x54]
push ecx
mov edx, dword [ebp + 0x70]
push edx
mov eax, dword [ebp + 0x6c]
push eax
mov ecx, dword [ebp + 0x64]
push ecx
call fcn.004fe210
add esp, 0x10
movzx edx, byte [ebp + 0x7c]
push edx
mov eax, dword [ebp + 0x78]
push eax
mov ecx, dword [ebp + 0x74]
push ecx
lea edx, [ebp + 0x54]
push edx
mov eax, dword [ebp + 0x6c]
push eax
mov ecx, dword [ebp + 0x64]
push ecx
call fcn.004fb700
add esp, 0x18
mov dword [ebp + 4], eax
cmp dword [ebp + 4], 0
je 0x4fb417
mov eax, dword [ebp + 4]
jmp 0x4fb6a9
cmp dword [ebp + 0x54], 0
jne 0x4fb432
mov edx, dword [ebp + 0x64]
mov dword [edx + 0x118], 0x4f6e60
mov eax, dword [ebp + 4]
jmp 0x4fb6a9
jmp 0x4fb669
movzx eax, byte [ebp + 0x7c]
test eax, eax
je 0x4fb44e
mov ecx, dword [ebp + 0x78]
mov edx, dword [ebp + 0x70]
mov dword [ecx], edx
xor eax, eax
jmp 0x4fb6a9
mov eax, dword [ebp + 0x64]
cmp dword [eax + 0x3c], 0
je 0x4fb4d1
mov ecx, dword [ebp + 0x6c]
movsx edx, byte [ecx + 0x48]
test edx, edx
jne 0x4fb4b2
mov eax, dword [ebp + 0x64]
mov ecx, dword [eax + 0x2c]
mov dword [ebp - 0x18], ecx
mov edx, dword [ebp + 0x64]
mov eax, dword [edx + 0x30]
push eax
lea ecx, [ebp - 0x18]
push ecx
mov edx, dword [ebp + 0x74]
push edx
lea eax, [ebp + 0x70]
push eax
mov ecx, dword [ebp + 0x6c]
push ecx
mov edx, dword [ebp + 0x6c]
mov eax, dword [edx + 0x3c]
call eax
add esp, 0x14
mov ecx, dword [ebp + 0x64]
mov edx, dword [ebp - 0x18]
sub edx, dword [ecx + 0x2c]
push edx
mov eax, dword [ebp + 0x64]
mov ecx, dword [eax + 0x2c]
push ecx
mov edx, dword [ebp + 0x64]
mov eax, dword [edx + 4]
push eax
mov ecx, dword [ebp + 0x64]
mov edx, dword [ecx + 0x3c]
call edx
add esp, 0xc
jmp 0x4fb4cf
mov eax, dword [ebp + 0x74]
sub eax, dword [ebp + 0x70]
push eax
mov ecx, dword [ebp + 0x70]
push ecx
mov edx, dword [ebp + 0x64]
mov eax, dword [edx + 4]
push eax
mov ecx, dword [ebp + 0x64]
mov edx, dword [ecx + 0x3c]
call edx
add esp, 0xc
jmp 0x4fb4f2
mov eax, dword [ebp + 0x64]
cmp dword [eax + 0x50], 0
je 0x4fb4f2
mov ecx, dword [ebp + 0x74]
push ecx
mov edx, dword [ebp + 0x70]
push edx
mov eax, dword [ebp + 0x6c]
push eax
mov ecx, dword [ebp + 0x64]
push ecx
call fcn.004fe210
add esp, 0x10
cmp dword [ebp + 0x68], 0
jne 0x4fb50a
mov edx, dword [ebp + 0x3c]
mov eax, dword [ebp + 0x74]
mov dword [edx], eax
mov eax, 3
jmp 0x4fb6a9
mov ecx, dword [ebp + 0x64]
mov edx, dword [ecx + 0x138]
cmp edx, dword [ebp + 0x68]
je 0x4fb52a
mov eax, dword [ebp + 0x3c]
mov ecx, dword [ebp + 0x74]
mov dword [eax], ecx
mov eax, 0xd
jmp 0x4fb6a9
mov edx, dword [ebp + 0x78]
mov eax, dword [ebp + 0x74]
mov dword [edx], eax
xor eax, eax
jmp 0x4fb6a9
mov ecx, dword [ebp + 0x64]
mov edx, dword [ecx + 0x3c]
mov dword [ebp - 4], edx
cmp dword [ebp - 4], 0
je 0x4fb5d8
mov eax, dword [ebp + 0x6c]
movsx ecx, byte [eax + 0x48]
test ecx, ecx
jne 0x4fb5be
mov edx, dword [ebp + 0x64]
mov eax, dword [edx + 0x2c]
mov dword [ebp - 0x20], eax
mov ecx, dword [ebp + 0x64]
mov edx, dword [ecx + 0x30]
push edx
lea eax, [ebp - 0x20]
push eax
mov ecx, dword [ebp + 0x54]
push ecx
lea edx, [ebp + 0x70]
push edx
mov eax, dword [ebp + 0x6c]
push eax
mov ecx, dword [ebp + 0x6c]
mov edx, dword [ecx + 0x3c]
call edx
add esp, 0x14
mov eax, dword [ebp + 0x28]
mov ecx, dword [ebp + 0x70]
mov dword [eax], ecx
mov edx, dword [ebp + 0x64]
mov eax, dword [ebp - 0x20]
sub eax, dword [edx + 0x2c]
push eax
mov ecx, dword [ebp + 0x64]
mov edx, dword [ecx + 0x2c]
push edx
mov eax, dword [ebp + 0x64]
mov ecx, dword [eax + 4]
push ecx
call dword [ebp - 4]
add esp, 0xc
mov edx, dword [ebp + 0x70]
cmp edx, dword [ebp + 0x54]
jne 0x4fb5b2
jmp 0x4fb5bc
mov eax, dword [ebp + 0x3c]
mov ecx, dword [ebp + 0x70]
mov dword [eax], ecx
jmp 0x4fb557
jmp 0x4fb5d6
mov edx, dword [ebp + 0x54]
sub edx, dword [ebp + 0x70]
push edx
mov eax, dword [ebp + 0x70]
push eax
mov ecx, dword [ebp + 0x64]
mov edx, dword [ecx + 4]
push edx
call dword [ebp - 4]
add esp, 0xc
jmp 0x4fb5f9
mov eax, dword [ebp + 0x64]
cmp dword [eax + 0x50], 0
je 0x4fb5f9
mov ecx, dword [ebp + 0x54]
push ecx
mov edx, dword [ebp + 0x70]
push edx
mov eax, dword [ebp + 0x6c]
push eax
mov ecx, dword [ebp + 0x64]
push ecx
call fcn.004fe210
add esp, 0x10
jmp 0x4fb669
mov edx, dword [ebp + 0x54]
push edx
mov eax, dword [ebp + 0x70]
push eax
mov ecx, dword [ebp + 0x6c]
push ecx
mov edx, dword [ebp + 0x64]
push edx
call fcn.004fe030
add esp, 0x10
test eax, eax
jne 0x4fb621
mov eax, 1
jmp 0x4fb6a9
jmp 0x4fb669
mov eax, dword [ebp + 0x54]
push eax
mov ecx, dword [ebp + 0x70]
push ecx
mov edx, dword [ebp + 0x6c]
push edx
mov eax, dword [ebp + 0x64]
push eax
call fcn.004fe160
add esp, 0x10
test eax, eax
jne 0x4fb646
mov eax, 1
jmp 0x4fb6a9
jmp 0x4fb669
mov ecx, dword [ebp + 0x64]
cmp dword [ecx + 0x50], 0
je 0x4fb669
mov edx, dword [ebp + 0x54]
push edx
mov eax, dword [ebp + 0x70]
push eax
mov ecx, dword [ebp + 0x6c]
push ecx
mov edx, dword [ebp + 0x64]
push edx
call fcn.004fe210
add esp, 0x10
mov eax, dword [ebp + 0x54]
mov dword [ebp + 0x70], eax
mov ecx, dword [ebp + 0x3c]
mov edx, dword [ebp + 0x70]
mov dword [ecx], edx
mov eax, dword [ebp + 0x64]
mov ecx, dword [eax + 0x1e0]
mov dword [ebp - 0x28], ecx
cmp dword [ebp - 0x28], 2
je 0x4fb69d
cmp dword [ebp - 0x28], 3
je 0x4fb691
jmp 0x4fb6a4
mov edx, dword [ebp + 0x78]
mov eax, dword [ebp + 0x54]
mov dword [edx], eax
xor eax, eax
jmp 0x4fb6a9
mov eax, 0x23
jmp 0x4fb6a9
jmp 0x4fa7b2
add ebp, 0x5c
mov esp, ebp
pop ebp
ret