Function at 0x46e150
Capabilities:
Check for software breakpoints
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
push ecx
mov ecx, 0x1e
push 0
push 0
dec ecx
jne 0x46e159
xchg dword [ebp - 4], ecx
push ebx
push esi
push edi
mov ebx, ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x46ee72
push dword fs:[eax]
mov dword fs:[eax], esp
mov byte [ebp - 9], 0
mov eax, dword [ebp - 4]
mov dword [eax + 0x58], 0x1f4
mov eax, dword [ebp - 4]
add eax, 0x5c
call fcn.00404150
mov eax, dword [ebp - 4]
xor edx, edx
mov dword [eax + 0x68], edx
mov eax, dword [ebp - 4]
xor edx, edx
mov dword [eax + 0x6c], edx
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 0x34]
push eax
lea eax, [ebp - 0x38]
push eax
lea ecx, [ebp - 0x20]
lea edx, [ebp - 0x1c]
mov eax, ebx
call fcn.00466414
cmp dword [ebp - 0x20], 0
jne 0x46e1ec
lea eax, [ebp - 0x20]
mov edx, dword [ebp - 4]
mov edx, dword [edx + 0x14]
call fcn.004041e8
lea eax, [ebp - 0x24]
mov edx, dword [ebp - 4]
mov edx, dword [edx + 0x18]
call fcn.004041e8
lea edx, [ebp - 0x54]
mov eax, dword [ebp - 0x1c]
call fcn.00408444
mov eax, dword [ebp - 0x54]
mov edx, 0x46ee8c
call fcn.0040455c
jne 0x46e26a
mov eax, dword [ebp - 4]
cmp dword [eax + 0x48], 0
setne bl
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x1c]
add eax, 0x204
mov edx, dword [ebp - 4]
mov edx, dword [edx + 0x48]
call fcn.004041a4
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x1c]
add eax, 0x208
mov edx, dword [ebp - 4]
mov edx, dword [edx + 0x4c]
call fcn.004041a4
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x1c]
add eax, 0x218
mov edx, dword [ebp - 4]
mov edx, dword [edx + 0x50]
call fcn.004041a4
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x1c]
add eax, 0x21c
mov edx, dword [ebp - 4]
mov edx, dword [edx + 0x54]
call fcn.004041a4
jmp 0x46e2ac
xor ebx, ebx
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x1c]
add eax, 0x204
call fcn.00404150
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x1c]
add eax, 0x208
call fcn.00404150
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x1c]
add eax, 0x218
call fcn.00404150
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x1c]
add eax, 0x21c
call fcn.00404150
mov eax, dword [ebp - 4]
cmp dword [eax + 0x48], 0
je 0x46e2b9
test bl, bl
je 0x46e2bd
xor eax, eax
jmp 0x46e2bf
mov al, 1
mov byte [ebp - 0x45], al
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x30]
mov edx, dword [eax]
call dword [edx]
cmp edx, 0
jne 0x46e2d9
cmp eax, 0
seta al
jmp 0x46e2dc
setg al
mov byte [ebp - 0xa], al
mov eax, dword [ebp - 4]
mov al, byte [eax + 0x44]
and al, byte [ebp - 0xa]
je 0x46e2fc
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x38]
mov edx, 0x46ee9c
call fcn.0040455c
je 0x46e300
xor eax, eax
jmp 0x46e302
mov al, 1
mov byte [ebp - 0xb], al
cmp byte [ebp - 0xb], 0
je 0x46e31d
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x2c]
mov ecx, 0x46eea8
xor edx, edx
mov ebx, dword [eax]
call dword [ebx + 0x60]
cmp byte [ebp - 0xa], 0
je 0x46e383
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x30]
mov edx, dword [eax]
call dword [edx]
push edx
push eax
lea eax, [ebp - 0x5c]
call fcn.004088d4
mov ecx, dword [ebp - 0x5c]
lea eax, [ebp - 0x58]
mov edx, 0x46eec8
call fcn.0040445c
mov ecx, dword [ebp - 0x58]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x2c]
xor edx, edx
mov ebx, dword [eax]
call dword [ebx + 0x60]
mov eax, dword [ebp - 4]
cmp dword [eax + 0x34], 0
je 0x46e383
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0x34]
lea eax, [ebp - 0x60]
mov edx, 0x46eee4
call fcn.0040445c
mov ecx, dword [ebp - 0x60]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x2c]
xor edx, edx
mov ebx, dword [eax]
call dword [ebx + 0x60]
mov eax, dword [ebp - 4]
cmp dword [eax + 0x60], 0
je 0x46e3af
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0x60]
lea eax, [ebp - 0x64]
mov edx, 0x46eefc
call fcn.0040445c
mov ecx, dword [ebp - 0x64]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x2c]
xor edx, edx
mov ebx, dword [eax]
call dword [ebx + 0x60]
mov eax, dword [ebp - 4]
mov ebx, dword [eax + 0x70]
test ebx, ebx
jg 0x46e3c6
mov eax, dword [ebp - 4]
cmp dword [eax + 0x74], 0
jle 0x46e449
mov eax, dword [ebp - 4]
cmp ebx, dword [eax + 0x74]
jg 0x46e415
push 0x46ef14
lea edx, [ebp - 0x6c]
mov eax, ebx
call fcn.004087e8
push dword [ebp - 0x6c]
push 0x46ef2c
lea edx, [ebp - 0x70]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x74]
call fcn.004087e8
push dword [ebp - 0x70]
lea eax, [ebp - 0x68]
mov edx, 4
call fcn.004044d0
mov ecx, dword [ebp - 0x68]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x2c]
xor edx, edx
mov ebx, dword [eax]
call dword [ebx + 0x60]
jmp 0x46e449
push 0x46ef14
lea edx, [ebp - 0x78]
mov eax, ebx
call fcn.004087e8
push dword [ebp - 0x78]
push 0x46ef2c
lea eax, [ebp - 0x74]
mov edx, 3
call fcn.004044d0
mov ecx, dword [ebp - 0x74]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x2c]
xor edx, edx
mov ebx, dword [eax]
call dword [ebx + 0x60]
lea eax, [ebp - 0x3c]
call fcn.00404150
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x64]
mov edx, dword [eax]
call dword [edx + 0x14]
mov ebx, eax
dec ebx
test ebx, ebx
jl 0x46e498
inc ebx
xor esi, esi
cmp dword [ebp - 0x3c], 0
je 0x46e479
lea eax, [ebp - 0x3c]
mov edx, 0x46ef38
call fcn.00404418
lea ecx, [ebp - 0x7c]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x64]
mov edx, esi
mov edi, dword [eax]
call dword [edi + 0xc]
mov edx, dword [ebp - 0x7c]
lea eax, [ebp - 0x3c]
call fcn.00404418
inc esi
dec ebx
jne 0x46e466
cmp dword [ebp - 0x3c], 0
je 0x46e4be
lea eax, [ebp - 0x80]
mov ecx, dword [ebp - 0x3c]
mov edx, 0x46ef44
call fcn.0040445c
mov ecx, dword [ebp - 0x80]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x2c]
xor edx, edx
mov ebx, dword [eax]
call dword [ebx + 0x60]
lea eax, [ebp - 0x44]
call fcn.00404150
cmp byte [ebp - 0x45], 0
je 0x46e4d9
lea eax, [ebp - 0x44]
mov edx, 0x46ef58
call fcn.004041e8
mov eax, dword [ebp - 4]
cmp byte [eax + 0x3c], 0
je 0x46e544
lea eax, [ebp - 0x84]
mov ecx, 0x46ef68
mov edx, dword [ebp - 0x44]
call fcn.0040445c
mov ecx, dword [ebp - 0x84]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x2c]
xor edx, edx
mov ebx, dword [eax]
call dword [ebx + 0x60]
lea edx, [ebp - 0x8c]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x40]
call fcn.004087e8
mov ecx, dword [ebp - 0x8c]
lea eax, [ebp - 0x88]
mov edx, 0x46ef88
call fcn.0040445c
mov ecx, dword [ebp - 0x88]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x2c]
xor edx, edx
mov ebx, dword [eax]
call dword [ebx + 0x60]
jmp 0x46e56a
lea eax, [ebp - 0x90]
mov ecx, 0x46efa0
mov edx, dword [ebp - 0x44]
call fcn.0040445c
mov ecx, dword [ebp - 0x90]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x2c]
xor edx, edx
mov ebx, dword [eax]
call dword [ebx + 0x60]
cmp dword [ebp - 0x20], 0
je 0x46e5c5
push dword [ebp - 0x20]
push 0x46efbc
push dword [ebp - 0x24]
lea eax, [ebp - 0x9c]
mov edx, 3
call fcn.004044d0
mov eax, dword [ebp - 0x9c]
lea edx, [ebp - 0x98]
call fcn.00466fb0
mov ecx, dword [ebp - 0x98]
lea eax, [ebp - 0x94]
mov edx, 0x46efc8
call fcn.0040445c
mov ecx, dword [ebp - 0x94]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x2c]
xor edx, edx
mov ebx, dword [eax]
call dword [ebx + 0x60]
cmp byte [ebp - 0x45], 0
je 0x46e62f
mov eax, dword [ebp - 4]
cmp dword [eax + 0x50], 0
je 0x46e62f
mov eax, dword [ebp - 4]
push dword [eax + 0x50]
push 0x46efbc
mov eax, dword [ebp - 4]
push dword [eax + 0x54]
lea eax, [ebp - 0xa8]
mov edx, 3
call fcn.004044d0
mov eax, dword [ebp - 0xa8]
lea edx, [ebp - 0xa4]
call fcn.00466fb0
mov ecx, dword [ebp - 0xa4]
lea eax, [ebp - 0xa0]
mov edx, 0x46efe8
call fcn.0040445c
mov ecx, dword [ebp - 0xa0]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x2c]
xor edx, edx
mov ebx, dword [eax]
call dword [ebx + 0x60]
mov eax, dword [ebp - 0x28]
call fcn.0046715c
test al, al
je 0x46e657
push 0x46f00c
push dword [ebp - 0x28]
push 0x46f018
lea eax, [ebp - 0x3c]
mov edx, 3
call fcn.004044d0
jmp 0x46e662
lea eax, [ebp - 0x3c]
mov edx, dword [ebp - 0x28]
call fcn.004041e8
mov eax, dword [ebp - 4]
cmp byte [eax + 0x78], 0
je 0x46e6af
mov eax, dword [ebp - 0x2c]
mov edx, 0x46f024
call fcn.0040455c
je 0x46e6af
push 0x46f030
push dword [ebp - 0x3c]
push 0x46efbc
push dword [ebp - 0x2c]
lea eax, [ebp - 0xac]
mov edx, 4
call fcn.004044d0
mov ecx, dword [ebp - 0xac]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x2c]
xor edx, edx
mov ebx, dword [eax]
call dword [ebx + 0x60]
jmp 0x46e6d5
lea eax, [ebp - 0xb0]
mov ecx, dword [ebp - 0x3c]
mov edx, 0x46f030
call fcn.0040445c
mov ecx, dword [ebp - 0xb0]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x2c]
xor edx, edx
mov ebx, dword [eax]
call dword [ebx + 0x60]
cmp byte [ebp - 0x45], 0
je 0x46e6fe
push dword [ebp - 0x1c]
push 0x46f040
push dword [ebp - 0x3c]
push 0x46efbc
push dword [ebp - 0x2c]
push dword [ebp - 0x38]
lea eax, [ebp - 0x38]
mov edx, 6
call fcn.004044d0
mov eax, dword [ebp - 0x38]
mov edx, 0x46f04c
call fcn.0040455c
jne 0x46e71a
lea eax, [ebp - 0x38]
mov edx, 0x46f058
call fcn.004041e8
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x38]
mov edx, 0x46f064
call fcn.0040455c
jne 0x46e76d
lea edx, [ebp - 0xb8]
mov eax, dword [ebp - 8]
call fcn.00408444
push dword [ebp - 0xb8]
push 0x46f070
push dword [ebp - 0x38]
lea eax, [ebp - 0xb4]
mov edx, 3
call fcn.004044d0
mov ecx, dword [ebp - 0xb4]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x2c]
xor edx, edx
mov ebx, dword [eax]
call dword [ebx + 0x60]
jmp 0x46e7b7
lea edx, [ebp - 0xc0]
mov eax, dword [ebp - 8]
call fcn.00408444
push dword [ebp - 0xc0]
push 0x46f070
push dword [ebp - 0x38]
push 0x46f07c
mov eax, dword [ebp - 4]
push dword [eax + 0x38]
lea eax, [ebp - 0xbc]
mov edx, 5
call fcn.004044d0
mov ecx, dword [ebp - 0xbc]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x2c]
xor edx, edx
mov ebx, dword [eax]
call dword [ebx + 0x60]
cmp byte [ebp - 0x45], 0
je 0x46e7e1
mov eax, dword [ebp - 4]
add eax, 4
mov edx, dword [ebp - 4]
mov edx, dword [edx + 0x48]
call fcn.004041a4
mov eax, dword [ebp - 4]
add eax, 8
mov edx, dword [ebp - 4]
mov edx, dword [edx + 0x4c]
call fcn.004041a4
jmp 0x46e7fd
mov eax, dword [ebp - 4]
add eax, 4
mov edx, dword [ebp - 0x28]
call fcn.004041a4
mov eax, dword [ebp - 4]
add eax, 8
mov edx, dword [ebp - 0x2c]
call fcn.004041a4
mov eax, dword [ebp - 4]
mov ebx, dword [eax + 0x2c]
mov eax, ebx
mov edx, dword [eax]
call dword [edx + 0x14]
mov edx, eax
dec edx
lea ecx, [ebp - 0xc4]
mov eax, ebx
mov ebx, dword [eax]
call dword [ebx + 0xc]
cmp dword [ebp - 0xc4], 0
je 0x46e830
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x2c]
xor edx, edx
mov ecx, dword [eax]
call dword [ecx + 0x38]
lea edx, [ebp - 0xc8]
mov eax, dword [ebp - 0x1c]
call fcn.00408444
mov eax, dword [ebp - 0xc8]
mov edx, 0x46ee8c
call fcn.0040455c
sete dl
mov eax, dword [ebp - 4]
call fcn.0046e0f4
test al, al
jne 0x46e878
mov eax, dword [ebp - 4]
add eax, 0x24
call fcn.00404150
mov eax, dword [ebp - 4]
add eax, 0x28
call fcn.00404150
jmp 0x46ee3f
push 0
push 0
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x30]
call fcn.0041b518
lea eax, [ebp - 0x10]
call fcn.00404150
cmp byte [ebp - 0xb], 0
je 0x46e986
lea edx, [ebp - 0xcc]
mov eax, dword [ebp - 4]
call fcn.0046dfe0
mov edx, dword [ebp - 0xcc]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x1c]
mov ecx, dword [eax]
call dword [ecx + 0x24]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x1c]
cmp dword [eax + 0x1b8], 0
jne 0x46ee3f
lea ecx, [ebp - 0x3c]
mov eax, dword [ebp - 4]
mov edx, dword [eax + 0x10]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x1c]
mov ebx, dword [eax]
call dword [ebx + 0x50]
cmp dword [ebp - 0x3c], 0
jne 0x46e8f4
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x1c]
cmp dword [eax + 0x1b8], 0
je 0x46e8cb
mov edx, dword [ebp - 0x3c]
mov eax, dword [ebp - 4]
call fcn.0046df10
lea eax, [ebp - 0x10]
mov edx, dword [ebp - 0x3c]
call fcn.004041e8
lea ecx, [ebp - 0x3c]
mov eax, dword [ebp - 4]
mov edx, dword [eax + 0x10]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x1c]
mov ebx, dword [eax]
call dword [ebx + 0x50]
cmp dword [ebp - 0x3c], 0
je 0x46e933
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x1c]
cmp dword [eax + 0x1b8], 0
je 0x46e90a
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x58]
cmp eax, 0x64
jl 0x46ea73
cmp eax, 0xc8
jge 0x46ea73
lea eax, [ebp - 0x10]
call fcn.00404150
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x30]
mov edx, dword [eax]
call dword [edx]
mov edx, dword [ebp - 4]
mov dword [edx + 0x6c], eax
mov eax, dword [ebp - 4]
mov ebx, dword [eax + 0x30]
mov eax, ebx
mov edx, dword [eax]
call dword [edx]
mov ecx, eax
mov edx, dword [ebx + 4]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x1c]
mov ebx, dword [eax]
call dword [ebx + 0x1c]
jmp 0x46ea73
cmp byte [ebp - 0xa], 0
je 0x46ea54
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x30]
mov edx, dword [eax]
call dword [edx]
cmp edx, 0
jne 0x46e9a8
cmp eax, 0x10000
jb 0x46e9f7
jmp 0x46e9aa
jl 0x46e9f7
lea edx, [ebp - 0xd0]
mov eax, dword [ebp - 4]
call fcn.0046dfe0
mov edx, dword [ebp - 0xd0]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x1c]
mov ecx, dword [eax]
call dword [ecx + 0x24]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x30]
mov edx, dword [eax]
call dword [edx]
mov edx, dword [ebp - 4]
mov dword [edx + 0x6c], eax
mov eax, dword [ebp - 4]
mov ebx, dword [eax + 0x30]
mov eax, ebx
mov edx, dword [eax]
call dword [edx]
mov ecx, eax
mov edx, dword [ebx + 4]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x1c]
mov ebx, dword [eax]
call dword [ebx + 0x1c]
jmp 0x46ea73
mov eax, dword [ebp - 4]
mov ebx, dword [eax + 0x30]
mov eax, ebx
mov edx, dword [eax]
call dword [edx]
mov edx, eax
lea ecx, [ebp - 0xd4]
mov eax, ebx
call fcn.00466be4
mov eax, dword [ebp - 0xd4]
push eax
lea edx, [ebp - 0xd8]
mov eax, dword [ebp - 4]
call fcn.0046dfe0
mov edx, dword [ebp - 0xd8]
lea eax, [ebp - 0x3c]
pop ecx
call fcn.0040445c
mov eax, dword [ebp - 0x3c]
call fcn.00404410
mov edx, dword [ebp - 4]
mov dword [edx + 0x6c], eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x1c]
mov edx, dword [ebp - 0x3c]
mov ecx, dword [eax]
call dword [ecx + 0x24]
jmp 0x46ea73
lea edx, [ebp - 0xdc]
mov eax, dword [ebp - 4]
call fcn.0046dfe0
mov edx, dword [ebp - 0xdc]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x1c]
mov ecx, dword [eax]
call dword [ecx + 0x24]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x1c]
cmp dword [eax + 0x1b8], 0
jne 0x46ee3f
mov eax, dword [ebp - 4]
call fcn.0046ded0
mov dword [ebp - 0x18], 0xffffffff
mov eax, dword [ebp - 4]
mov byte [eax + 0x20], 0
cmp dword [ebp - 0x10], 0
jne 0x46eb4c
lea ecx, [ebp - 0x3c]
mov eax, dword [ebp - 4]
mov edx, dword [eax + 0x10]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x1c]
mov ebx, dword [eax]
call dword [ebx + 0x50]
cmp dword [ebp - 0x3c], 0
jne 0x46eacf
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x1c]
cmp dword [eax + 0x1b8], 0
je 0x46eaa6
lea edx, [ebp - 0xe0]
mov eax, dword [ebp - 0x3c]
call fcn.00408444
mov edx, dword [ebp - 0xe0]
mov eax, 0x46f08c
call fcn.00404754
dec eax
jne 0x46eb0b
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x2c]
mov edx, dword [ebp - 0x3c]
mov ecx, dword [eax]
call dword [ecx + 0x38]
mov edx, dword [ebp - 0x3c]
mov eax, dword [ebp - 4]
call fcn.0046df10
jmp 0x46eb2e
lea eax, [ebp - 0x3c]
mov edx, 0x46f09c
call fcn.00404418
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x30]
mov edx, dword [ebp - 0x3c]
call fcn.00466c14
mov eax, dword [ebp - 4]
xor edx, edx
mov dword [eax + 0x58], edx
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x1c]
cmp dword [eax + 0x1b8], 0
jne 0x46eb5a
mov eax, dword [ebp - 4]
cmp dword [eax + 0x58], 0x64
je 0x46eaa6
jmp 0x46eb5a
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x2c]
mov edx, dword [ebp - 0x10]
mov ecx, dword [eax]
call dword [ecx + 0x38]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x38]
mov edx, 0x46ee9c
call fcn.0040455c
setne byte [ebp - 0x11]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x2c]
mov edx, dword [eax]
call dword [edx + 0x14]
test eax, eax
jle 0x46ed6c
mov dl, 1
mov eax, dword [0x417084]
call fcn.004033d0
mov dword [ebp - 0x4c], eax
xor eax, eax
push ebp
push 0x46ed65
push dword fs:[eax]
mov dword fs:[eax], esp
lea ecx, [ebp - 0x3c]
mov eax, dword [ebp - 4]
mov edx, dword [eax + 0x10]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x1c]
mov ebx, dword [eax]
call dword [ebx + 0x50]
mov edx, dword [ebp - 0x3c]
mov eax, dword [ebp - 0x4c]
mov ecx, dword [eax]
call dword [ecx + 0x38]
cmp dword [ebp - 0x3c], 0
je 0x46ebd2
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x1c]
cmp dword [eax + 0x1b8], 0
je 0x46eb9e
xor eax, eax
mov dword [ebp - 0x50], eax
jmp 0x46ed3e
lea ecx, [ebp - 0x3c]
lea edx, [ebp - 0x50]
mov eax, dword [ebp - 0x4c]
call fcn.00466c70
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x2c]
mov edx, dword [ebp - 0x3c]
mov ecx, dword [eax]
call dword [ecx + 0x38]
lea edx, [ebp - 0x40]
mov eax, dword [ebp - 0x3c]
call fcn.00408444
mov edx, dword [ebp - 0x40]
mov eax, 0x46f0a8
call fcn.00404754
dec eax
jne 0x46ec5e
lea ecx, [ebp - 0xe8]
mov edx, 0x46f070
mov eax, dword [ebp - 0x3c]
call fcn.004663d4
mov eax, dword [ebp - 0xe8]
lea edx, [ebp - 0xe4]
call fcn.004086b4
mov eax, dword [ebp - 0xe4]
or edx, 0xffffffff
call fcn.00408960
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0xffffffff
je 0x46ec5e
mov eax, dword [ebp - 4]
cmp byte [eax + 0x20], 0
jne 0x46ec5e
mov eax, dword [ebp - 4]
mov byte [eax + 0x20], 1
mov edx, dword [ebp - 0x40]
mov eax, 0x46f0c0
call fcn.00404754
dec eax
jne 0x46eca3
lea ecx, [ebp - 0xf0]
mov edx, 0x46f070
mov eax, dword [ebp - 0x3c]
call fcn.004663d4
mov eax, dword [ebp - 0xf0]
lea edx, [ebp - 0xec]
call fcn.004086b4
mov edx, dword [ebp - 0xec]
mov eax, dword [ebp - 4]
add eax, 0x34
call fcn.004041a4
mov edx, dword [ebp - 0x40]
mov eax, 0x46f0d8
call fcn.00404754
dec eax
jne 0x46ecec
lea ecx, [ebp - 0xf4]
mov edx, 0x46f070
mov eax, dword [ebp - 0x40]
call fcn.004663d4
mov eax, dword [ebp - 0xf4]
lea edx, [ebp - 0x3c]
call fcn.004086b4
mov edx, dword [ebp - 0x3c]
mov eax, 0x46f0f4
call fcn.00404754
test eax, eax
jle 0x46ecec
mov eax, dword [ebp - 4]
mov byte [eax + 0x20], 2
cmp byte [ebp - 0x45], 0
je 0x46ed19
mov edx, dword [ebp - 0x40]
mov eax, 0x46f104
call fcn.00404754
dec eax
jne 0x46ed3e
mov edx, dword [ebp - 0x40]
mov eax, 0x46f120
call fcn.00404754
test eax, eax
jle 0x46ed3e
mov byte [ebp - 0x11], 1
jmp 0x46ed3e
mov edx, dword [ebp - 0x40]
mov eax, 0x46f130
call fcn.00404754
dec eax
jne 0x46ed3e
mov edx, dword [ebp - 0x40]
mov eax, 0x46f120
call fcn.00404754
test eax, eax
jle 0x46ed3e
mov byte [ebp - 0x11], 1
mov eax, dword [ebp - 0x4c]
mov edx, dword [eax]
call dword [edx + 0x14]
cmp eax, dword [ebp - 0x50]
jg 0x46ebdc
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x46ed6c
mov eax, dword [ebp - 0x4c]
call fcn.00403400
ret
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x1c]
cmp dword [eax + 0x1b8], 0
sete byte [ebp - 9]
cmp byte [ebp - 9], 0
je 0x46ee3f
mov eax, dword [ebp - 8]
mov edx, 0x46f144
call fcn.0040455c
setne al
test al, al
je 0x46eda7
mov eax, dword [ebp - 4]
cmp dword [eax + 0x58], 0xcc
jne 0x46edab
xor eax, eax
jmp 0x46edad
mov al, 1
test al, al
je 0x46edbd
mov eax, dword [ebp - 4]
cmp dword [eax + 0x58], 0x130
jne 0x46edc1
xor eax, eax
jmp 0x46edc3
mov al, 1
test al, al
je 0x46ee01
mov eax, dword [ebp - 4]
mov al, byte [eax + 0x20]
sub al, 1
jb 0x46edd9
je 0x46ede6
dec al
je 0x46edf6
jmp 0x46ee01
mov eax, dword [ebp - 4]
call fcn.0046f14c
mov byte [ebp - 9], al
jmp 0x46ee01
mov edx, dword [ebp - 0x18]
mov eax, dword [ebp - 4]
call fcn.0046f1d8
mov byte [ebp - 9], al
jmp 0x46ee01
mov eax, dword [ebp - 4]
call fcn.0046f21c
mov byte [ebp - 9], al
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x30]
xor ecx, ecx
xor edx, edx
mov ebx, dword [eax]
call dword [ebx + 0x14]
cmp byte [ebp - 0x11], 0
je 0x46ee37
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x1c]
mov edx, dword [eax]
call dword [edx + 0x10]
mov eax, dword [ebp - 4]
add eax, 0x24
call fcn.00404150
mov eax, dword [ebp - 4]
add eax, 0x28
call fcn.00404150
mov eax, dword [ebp - 4]
call fcn.0046f340
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x46ee79
lea eax, [ebp - 0xf4]
mov edx, 0x29
call fcn.00404174
lea eax, [ebp - 0x44]
mov edx, 0xb
call fcn.00404174
lea eax, [ebp - 0x10]
call fcn.00404150
ret