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

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffd04
push ebx
push esi
push edi
mov esi, edx
lea edi, [ebp - 0xc]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov dword [ebp - 0x10], ecx
mov dword [ebp - 4], eax
mov esi, dword [ebp + 0x24]
mov ebx, dword [ebp + 0x34]
mov byte [ebp - 0x11], 0
xor edi, edi
mov eax, dword [ebp + 8]
xor edx, edx
mov dword [eax], edx
mov eax, dword [ebp - 0xc]
mov dword [ebx], eax
mov eax, dword [ebp - 8]
mov dword [ebx + 4], eax
xor eax, eax
mov dword [ebx + 0x10], eax
xor eax, eax
mov dword [ebx + 0x14], eax
mov word [ebx + 0x18], 0
mov word [ebx + 0x1a], 0
mov dword [ebx + 0x1c], 0
mov dword [ebx + 0x20], 0
mov word [ebx + 0x34], 0
xor eax, eax
mov dword [ebx + 0x248], eax
xor eax, eax
mov dword [ebx + 0x24c], eax
xor eax, eax
mov dword [ebp - 0x44], eax
xor eax, eax
mov dword [ebp - 0x54], eax
xor eax, eax
mov dword [ebp - 0x58], eax
mov dword [ebp - 0x50], 0xffffffff
mov dword [ebp - 0x4c], 0xffffffff
mov byte [ebp - 0x31], 0
mov eax, dword [ebp - 8]
test eax, eax
jge 0x61040a
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0x30], eax
mov eax, dword [ebp - 0x30]
add eax, eax
mov edx, dword [ebp - 4]
mov edx, dword [edx + 0xaec]
mov edx, dword [edx + eax*8]
mov dword [ebp - 0x18], edx
mov edx, dword [ebp - 4]
mov edx, dword [edx + 0xaec]
mov edx, dword [edx + eax*8 + 4]
mov dword [ebp - 0x1c], edx
xor edx, edx
mov dword [ebp - 0x20], edx
mov edx, dword [ebp - 4]
mov edx, dword [edx + 0xae8]
mov eax, dword [edx + eax*8]
mov dword [ebp - 0x44], eax
cmp dword [ebp - 0x30], 7
jle 0x61034e
mov eax, dword [ebp - 0x30]
add eax, eax
mov edx, dword [ebp - 4]
mov edx, dword [edx + 0xaec]
test byte [edx + eax*8 + 8], 0x80
jne 0x61034e
xor eax, eax
jmp 0x610350
mov al, 1
mov byte [ebp - 0x31], al
push 0xff
lea ecx, [ebx + 0x34]
mov eax, dword [ebp - 4]
mov edx, dword [ebp - 0x30]
call fcn.0053c85c
mov edi, eax
or dword [ebx + 0x10], 0x10
cmp dword [ebp - 0x10], 0
je 0x6103df
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 0xb8]
cmp eax, dword [ebp - 0x30]
je 0x610394
mov edx, dword [ebp - 0x30]
add edx, edx
mov ecx, dword [ebp - 4]
mov ecx, dword [ecx + 0xae8]
cmp eax, dword [ecx + edx*8 + 0xc]
jne 0x6103df
mov eax, dword [ebp - 0x30]
add eax, eax
mov edx, dword [ebp - 4]
mov edx, dword [edx + 0xaec]
mov edx, dword [edx + eax*8 + 8]
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 0xbc]
call fcn.0055b2d8
mov dword [ebx + 0x14], eax
mov eax, dword [ebp - 0x10]
test dword [eax + 0xc0], 0x110
je 0x6103cd
or dword [ebx + 0x14], 0x100
mov eax, dword [ebp - 0x10]
test byte [eax + 0xc0], 0x20
je 0x6103f0
or dword [ebx + 0x14], 0x20
jmp 0x6103f0
lea ecx, [ebp - 0x38]
mov eax, dword [ebp - 4]
mov edx, dword [ebp - 0x30]
call fcn.0055d404
mov dword [ebx + 0x14], eax
mov eax, dword [ebp - 0x30]
add eax, eax
mov edx, dword [ebp - 4]
mov edx, dword [edx + 0xae8]
mov eax, dword [edx + eax*8 + 0xc]
mov dword [ebp - 0x30], eax
jmp 0x61056d
test eax, eax
jl 0x61116b
mov edx, dword [ebp - 0xc]
mov dword [ebp - 0x30], edx
mov edx, dword [ebp - 4]
mov edx, dword [edx + 0xb10]
mov ecx, dword [ebp - 0x30]
mov edx, dword [edx + ecx*8 + 4]
lea ecx, [eax + eax*2]
mov edx, dword [edx + ecx*4 + 0x8c]
mov dword [ebp - 0x18], edx
mov edx, dword [ebp - 4]
mov edx, dword [edx + 0xb10]
mov ecx, dword [ebp - 0x30]
mov edx, dword [edx + ecx*8 + 4]
lea ecx, [eax + eax*2]
mov edx, dword [edx + ecx*4 + 0x90]
mov dword [ebp - 0x1c], edx
mov edx, dword [ebp - 4]
mov edx, dword [edx + 0xb10]
mov ecx, dword [ebp - 0x30]
mov edx, dword [edx + ecx*8 + 4]
lea eax, [eax + eax*2]
mov eax, dword [edx + eax*4 + 0x94]
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x10], 0
je 0x61049d
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 0xb8]
cmp eax, dword [ebp - 0x30]
jne 0x61049d
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 0xbc]
mov dword [ebp - 0x38], eax
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 0xc0]
mov dword [ebp - 0x3c], eax
jmp 0x6104ae
lea ecx, [ebp - 0x38]
mov eax, dword [ebp - 4]
mov edx, dword [ebp - 0x30]
call fcn.0055d404
mov dword [ebp - 0x3c], eax
xor ecx, ecx
mov edx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x38]
call fcn.0055b348
mov dword [ebx + 0x14], eax
test dword [ebp - 0x3c], 0x110
je 0x6104ce
or dword [ebx + 0x14], 0x100
test byte [ebp - 0x3c], 0x20
je 0x6104d8
or dword [ebx + 0x14], 0x20
mov eax, dword [ebp - 0x18]
and eax, 0x1ffffff
cmp eax, 0x1fffffc
jne 0x61056d
push 0xff
lea eax, [ebp - 0x30]
push eax
lea ecx, [ebx + 0x34]
mov eax, dword [ebp - 4]
lea edx, [ebp - 0xc]
call fcn.0053c870
mov edi, eax
cmp dword [ebp - 0x30], 0xffffffff
jne 0x610512
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0x30], eax
jmp 0x61056d
mov eax, dword [ebp - 0x30]
add eax, eax
mov edx, dword [ebp - 4]
mov edx, dword [edx + 0xaec]
mov eax, dword [edx + eax*8]
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x30]
add eax, eax
mov edx, dword [ebp - 4]
mov edx, dword [edx + 0xaec]
mov eax, dword [edx + eax*8 + 4]
mov dword [ebp - 0x1c], eax
xor eax, eax
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x30]
add eax, eax
mov edx, dword [ebp - 4]
mov edx, dword [edx + 0xae8]
mov eax, dword [edx + eax*8]
mov dword [ebp - 0x44], eax
or dword [ebx + 0x10], 0x10
mov eax, dword [ebp - 0x30]
add eax, eax
mov edx, dword [ebp - 4]
mov edx, dword [edx + 0xae8]
mov eax, dword [edx + eax*8 + 0xc]
mov dword [ebp - 0x30], eax
mov eax, dword [ebp - 0x18]
and eax, 0x1ffffff
cmp eax, 0x1fffffe
jne 0x610874
cmp byte [ebp + 0x30], 0
jne 0x61079a
cmp dword [ebp - 0x10], 0
je 0x6105aa
mov eax, dword [ebp - 0x10]
cmp byte [eax + 0xb5], 0
je 0x6105aa
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 0xb8]
cmp eax, dword [ebp - 0x30]
je 0x6105fb
mov byte [ebp - 0x19f], 0
lea eax, [ebp - 0x254]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp + 0x10]
push eax
push 0
mov eax, dword [ebp - 4]
mov ecx, dword [ebp - 0x10]
mov edx, dword [ebp - 0x30]
mov edi, dword [eax]
call dword [edi + 0x64]
test al, al
je 0x61116b
mov eax, dword [ebp - 0x10]
cmp byte [eax + 0xb5], 0
jne 0x6105fb
mov eax, dword [ebp + 0x10]
push eax
push 0
mov eax, dword [ebp - 4]
mov ecx, dword [ebp - 0x10]
or edx, 0xffffffff
mov ebx, dword [eax]
call dword [ebx + 0x64]
jmp 0x61116b
cmp dword [ebp + 0x2c], 0
jne 0x610611
lea eax, [ebp - 0x190]
mov dword [ebp + 0x2c], eax
mov dword [ebp + 0x28], 0x108
mov eax, dword [ebp - 0x1c]
xor edx, edx
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x24], edx
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x9e4c]
mov edi, dword [eax + 0x5c]
cmp dword [ebp - 0x24], 0
jne 0x610636
cmp dword [ebp - 0x28], 0
jae 0x61068a
jmp 0x610638
jge 0x61068a
mov eax, edi
xor edx, edx
push edx
push eax
mov eax, dword [ebp - 0x28]
mov edx, dword [ebp - 0x24]
neg eax
adc edx, 0
neg edx
call fcn.00405210
mov dword [ebp - 0x2c], eax
cmp dword [ebp - 0x2c], 0
jbe 0x610661
mov eax, edi
sub eax, dword [ebp - 0x2c]
mov dword [ebp - 0x2c], eax
mov eax, edi
xor edx, edx
push edx
push eax
mov eax, dword [ebp - 0x28]
mov edx, dword [ebp - 0x24]
push edx
push eax
mov eax, dword [ebp - 0x2c]
xor edx, edx
sub dword [esp], eax
sbb dword [esp + 4], edx
pop eax
pop edx
call fcn.0040517c
mov dword [ebp - 0x78], eax
mov dword [ebp - 0x74], edx
jmp 0x6106b5
mov eax, edi
xor edx, edx
push edx
push eax
mov eax, dword [ebp - 0x28]
mov edx, dword [ebp - 0x24]
call fcn.00405210
mov dword [ebp - 0x2c], eax
mov eax, edi
xor edx, edx
push edx
push eax
mov eax, dword [ebp - 0x28]
mov edx, dword [ebp - 0x24]
call fcn.0040517c
mov dword [ebp - 0x78], eax
mov dword [ebp - 0x74], edx
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x9e4c]
mov eax, dword [eax + 0x5c]
mov edx, dword [ebp - 0x2c]
add edx, dword [ebp + 0x28]
cmp eax, edx
jae 0x6106dd
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x9e4c]
mov eax, dword [eax + 0x5c]
sub eax, dword [ebp - 0x2c]
mov dword [ebp + 0x28], eax
push dword [ebp - 0x24]
push dword [ebp - 0x28]
mov eax, dword [ebp + 0x28]
push eax
mov eax, dword [ebp + 0x10]
push eax
mov eax, dword [ebp + 0xc]
push eax
lea eax, [ebp - 0x40]
push eax
mov eax, dword [ebp - 0x10]
lea edx, [eax + 0xac]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x9e4c]
mov ecx, dword [ebp + 0x2c]
call fcn.0060fecc
mov dword [ebp + 0x28], eax
cmp dword [ebp + 0x14], 0
je 0x61076e
mov edx, dword [ebp + 0x14]
mov eax, dword [ebp - 0x10]
add eax, 4
mov ecx, 0x9c
call fcn.00402da0
mov eax, dword [ebp + 0x14]
mov edx, dword [ebp - 0x10]
mov ecx, dword [edx + 0xa0]
mov dword [eax + 0x9c], ecx
mov ecx, dword [edx + 0xa4]
mov dword [eax + 0xa0], ecx
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 0xa8]
mov edx, dword [ebp + 0x14]
mov dword [edx + 0xa4], eax
mov eax, dword [ebp + 0x14]
mov edx, dword [ebp - 0x28]
mov dword [eax + 0xa8], edx
mov edx, dword [ebp - 0x24]
mov dword [eax + 0xac], edx
lea eax, [ebp - 0x254]
cmp eax, dword [ebp - 0x10]
jne 0x61078d
mov eax, dword [ebp + 0x10]
push eax
push 0
mov eax, dword [ebp - 4]
mov ecx, dword [ebp - 0x10]
or edx, 0xffffffff
mov edi, dword [eax]
call dword [edi + 0x64]
cmp dword [ebp - 0x40], 0x8013
je 0x61116b
mov eax, dword [ebp + 0x2c]
cmp byte [eax + 7], 0
je 0x6107c5
test byte [ebx + 0x10], 0x10
setne dl
mov ecx, dword [ebp + 0x2c]
cmp byte [ecx + 7], 2
sete cl
xor dl, cl
je 0x6107c5
cmp dword [ebp - 0x40], 0
jne 0x6107c5
mov dword [ebp - 0x40], 0x8005
test esi, esi
jne 0x6107d1
mov edx, dword [ebp + 8]
mov ecx, dword [ebp - 0x40]
mov dword [edx], ecx
cmp dword [ebp + 0x28], 4
jb 0x61116b
mov edx, dword [eax]
mov dword [ebp - 0x44], edx
lea ecx, [ebx + 0x34]
mov edx, dword [ebp + 0x28]
call fcn.0060d944
mov edi, eax
test byte [ebx + 0x10], 0x10
jne 0x610801
mov dword [ebx + 0x1c], 0xffffffff
mov dword [ebx + 0x20], 0xffffffff
test byte [ebp - 0x15], 0x20
je 0x6108c9
cmp dword [ebp - 0x20], 0
je 0x6108c9
cmp dword [ebp - 0x30], 0xffffffff
je 0x6108c9
mov eax, dword [ebp - 4]
cmp dword [eax + 0x9e50], 0
je 0x6108c9
mov eax, dword [ebp - 0x30]
add eax, eax
mov edx, dword [ebp - 4]
mov edx, dword [edx + 0xaec]
mov eax, dword [edx + eax*8]
and eax, 0x1ffffff
mov dword [ebp - 0x54], eax
cmp dword [ebp - 0x54], 0
je 0x610860
cmp dword [ebp - 0x54], 0x1fffffd
je 0x610860
cmp dword [ebp - 0x54], 0x1fffffe
jne 0x610865
xor eax, eax
mov dword [ebp - 0x54], eax
cmp dword [ebp - 0x54], 0
je 0x6108c9
mov eax, dword [ebp - 0x20]
dec eax
mov dword [ebp - 0x58], eax
jmp 0x6108c9
test byte [ebx + 0x10], 0x10
jne 0x610888
mov dword [ebx + 0x1c], 0xffffffff
mov dword [ebx + 0x20], 0xffffffff
mov dword [ebp - 0x54], eax
cmp dword [ebp - 0x54], 0
je 0x6108a3
cmp dword [ebp - 0x54], 0x1fffffd
je 0x6108a3
cmp dword [ebp - 0x54], 0x1fffffe
jne 0x6108a8
xor eax, eax
mov dword [ebp - 0x54], eax
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0x58], eax
cmp dword [ebp - 0x44], 0
jne 0x6108c9
cmp dword [ebp - 0x54], 0
jne 0x6108c3
mov eax, dword [ebp - 0x58]
inc eax
mov dword [ebp - 0x44], eax
jmp 0x6108c9
mov eax, dword [ebp - 0x20]
mov dword [ebp - 0x44], eax
cmp dword [ebx + 0x20], 0xffffffff
jne 0x6108d3
cmp dword [ebx + 0x1c], 0xffffffff
je 0x6108f1
test esi, esi
je 0x6108e1
mov eax, dword [ebp + 0x20]
cmp byte [eax], 0
je 0x6108f1
cmp dword [ebp + 0x18], 0
jne 0x6108f1
cmp byte [ebp - 0x31], 0
jne 0x610a4d
test esi, esi
jne 0x610902
lea esi, [ebp - 0x2f0]
mov dword [ebp + 0x1c], 0x9c
cmp byte [ebp - 0x31], 0
jne 0x61091d
cmp dword [ebp - 0x44], 0
jne 0x610940
mov eax, dword [ebp - 0x18]
and eax, 0x1ffffff
cmp eax, 0x1fffffe
jne 0x610940
xor esi, esi
mov dword [ebx + 0x1c], 0
mov dword [ebx + 0x20], 0
cmp byte [ebp - 0x31], 0
jne 0x610aa7
or dword [ebx + 0x14], 0x10
jmp 0x610aa7
lea eax, [ebp - 0x58]
push eax
lea eax, [ebp - 0x5c]
push eax
lea eax, [ebp - 0x50]
push eax
push esi
mov eax, dword [ebp + 0x1c]
push eax
mov eax, dword [ebp + 0x10]
push eax
mov eax, dword [ebp + 0xc]
push eax
mov eax, dword [ebp + 8]
push eax
lea ecx, [ebp - 0x54]
mov eax, dword [ebp - 4]
mov edx, dword [ebp - 0x44]
call fcn.0060ddb0
test al, al
jne 0x61099a
xor esi, esi
xor eax, eax
mov dword [ebp - 0x54], eax
mov eax, dword [ebp + 8]
cmp dword [eax], 0
jne 0x610987
mov eax, dword [ebp + 8]
mov dword [eax], 0x8005
mov dword [ebx + 0x1c], 0
mov dword [ebx + 0x20], 0
jmp 0x610aa7
mov eax, dword [ebx + 0x10]
and eax, 0x10
movzx edx, word [esi]
shl edx, 0x10
or eax, edx
mov dword [ebx + 0x10], eax
movzx eax, word [esi + 2]
movzx edx, word [esi + 0x78]
shl edx, 0x10
or eax, edx
mov dword [ebx + 0x248], eax
movzx eax, word [esi + 0x18]
movzx edx, word [esi + 0x7a]
shl edx, 0x10
or eax, edx
mov dword [ebx + 0x24c], eax
mov eax, dword [ebx + 0x10]
and eax, 0x10
test eax, eax
setne al
movzx edx, word [esi]
and dx, 0xf000
cmp dx, 0x4000
sete dl
xor al, dl
je 0x610a1b
xor esi, esi
xor eax, eax
mov dword [ebp - 0x54], eax
mov eax, dword [ebp + 8]
cmp dword [eax], 0
jne 0x610a08
mov eax, dword [ebp + 8]
mov dword [eax], 0x8005
mov dword [ebx + 0x1c], 0
mov dword [ebx + 0x20], 0
jmp 0x610aa7
mov eax, dword [ebx + 0x10]
and eax, 0x10
test eax, eax
je 0x610a35
mov dword [ebx + 0x1c], 0
mov dword [ebx + 0x20], 0
jmp 0x610aa7
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x9e4c]
mov edx, esi
call fcn.004cd2d4
mov dword [ebx + 0x1c], eax
mov dword [ebx + 0x20], edx
jmp 0x610aa7
xor esi, esi
cmp dword [ebp - 0x54], 0
je 0x610aa7
mov eax, dword [ebp - 4]
cmp dword [eax + 0x9e50], 0
je 0x610aa7
mov eax, dword [ebp - 0x58]
cdq
push edx
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x9e4c]
mov eax, dword [eax + 0x68]
xor edx, edx
call fcn.00405158
push edx
push eax
mov eax, dword [ebp - 0x54]
lea eax, [eax + eax*8]
mov edx, dword [ebp - 4]
mov edx, dword [edx + 0x9e50]
mov edx, dword [edx + 0x30]
lea eax, [edx + eax*4 - 0x24]
mov edx, dword [eax + 4]
mov eax, dword [eax]
add eax, dword [esp]
adc edx, dword [esp + 4]
add esp, 8
mov dword [ebp - 0x50], eax
mov dword [ebp - 0x4c], edx
test edi, edi
jne 0x610e85
mov eax, dword [ebp - 0x44]
cmp eax, 0xa
ja case.0x610abb.0
jmp dword [eax*4 + 0x610ac2]
mov edx, 0x611178
lea eax, [ebx + 0x34]
mov ecx, 0xff
call fcn.00414414
mov edi, eax
jmp 0x610e85
mov edx, 0x611180
lea eax, [ebx + 0x34]
mov ecx, 0xff
call fcn.00414414
mov edi, eax
jmp 0x610e85
mov edx, 0x611188
lea eax, [ebx + 0x34]
mov ecx, 0xff
call fcn.00414414
mov edi, eax
jmp 0x610e85
mov edx, 0x611194
lea eax, [ebx + 0x34]
mov ecx, 0xff
call fcn.00414414
mov edi, eax
jmp 0x610e85
mov edx, 0x6111a0
lea eax, [ebx + 0x34]
mov ecx, 0xff
call fcn.00414414
mov edi, eax
jmp 0x610e85
mov edx, 0x6111a8
lea eax, [ebx + 0x34]
mov ecx, 0xff
call fcn.00414414
mov edi, eax
jmp 0x610e85
mov edx, 0x6111b4
lea eax, [ebx + 0x34]
mov ecx, 0xff
call fcn.00414414
mov edi, eax
jmp 0x610e85
mov edx, 0x6111bc
lea eax, [ebx + 0x34]
mov ecx, 0xff
call fcn.00414414
mov edi, eax
jmp 0x610e85
mov edx, 0x6111c4
lea eax, [ebx + 0x34]
mov ecx, 0xff
call fcn.00414414
mov edi, eax
jmp 0x610e85
mov edx, 0x6111cc
lea eax, [ebx + 0x34]
mov ecx, 0xff
call fcn.00414414
mov edi, eax
jmp 0x610e85
cmp dword [ebp - 0x44], 1
jl 0x610c0a
push 0xff
lea ecx, [ebp - 0x44]
mov edx, 0x6111d4
lea eax, [ebx + 0x34]
call fcn.004112e0
mov edi, eax
jmp 0x610d16
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xa98]
mov eax, dword [eax + 0x14e0]
mov dword [ebp - 0x7c], eax
cmp dword [ebp - 0x4c], 0
jne 0x610c2a
cmp dword [ebp - 0x50], 0
jae 0x610c87
jmp 0x610c2c
jge 0x610c87
mov eax, dword [ebp - 0x7c]
xor edx, edx
push edx
push eax
mov eax, dword [ebp - 0x50]
mov edx, dword [ebp - 0x4c]
neg eax
adc edx, 0
neg edx
call fcn.00405210
mov dword [ebp - 0x2c], eax
cmp dword [ebp - 0x2c], 0
jbe 0x610c57
mov eax, dword [ebp - 0x7c]
sub eax, dword [ebp - 0x2c]
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp - 0x7c]
xor edx, edx
push edx
push eax
mov eax, dword [ebp - 0x50]
mov edx, dword [ebp - 0x4c]
push edx
push eax
mov eax, dword [ebp - 0x2c]
xor edx, edx
sub dword [esp], eax
sbb dword [esp + 4], edx
pop eax
pop edx
call fcn.0040517c
mov dword [ebp - 0x88], eax
mov dword [ebp - 0x84], edx
jmp 0x610cba
mov eax, dword [ebp - 0x7c]
xor edx, edx
push edx
push eax
mov eax, dword [ebp - 0x50]
mov edx, dword [ebp - 0x4c]
call fcn.00405210
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp - 0x7c]
xor edx, edx
push edx
push eax
mov eax, dword [ebp - 0x50]
mov edx, dword [ebp - 0x4c]
call fcn.0040517c
mov dword [ebp - 0x88], eax
mov dword [ebp - 0x84], edx
lea eax, [ebp - 0x2fc]
mov edx, dword [ebp - 0x88]
mov dword [eax], edx
mov edx, dword [ebp - 0x84]
mov dword [eax + 4], edx
mov eax, dword [ebp - 0x2c]
mov dword [ebp - 0x2f4], eax
cmp dword [ebp - 0x2c], 0
jne 0x610cfc
push 0xff
lea ecx, [ebp - 0x2fc]
mov edx, 0x6111d8
lea eax, [ebx + 0x34]
call fcn.004112e0
mov edi, eax
jmp 0x610d16
push 0xff
lea ecx, [ebp - 0x2fc]
mov edx, 0x6111dc
lea eax, [ebx + 0x34]
call fcn.004112e0
mov edi, eax
test byte [ebx + 0x10], 0x10
jne 0x610e85
cmp dword [ebx + 0x20], 0
jne 0x610d2a
cmp dword [ebx + 0x1c], 0
je 0x610e85
lea eax, [edi + 2]
cmp eax, 0xff
jg 0x610e85
cmp dword [ebp - 0x4c], 0xffffffff
jne 0x610d48
cmp dword [ebp - 0x50], 0xffffffff
je 0x610e85
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xa98]
cmp dword [eax + 0x2804], 0
je 0x610e85
cmp byte [ebp - 0x31], 0
jne 0x610e85
test esi, esi
je 0x610e85
mov eax, esi
call fcn.004cd264
test al, al
jne 0x610e85
mov eax, dword [ebp + 8]
mov eax, dword [eax]
push eax
push 0
push 1
mov eax, dword [ebp + 0x10]
push eax
mov eax, dword [ebp + 0xc]
push eax
lea eax, [ebp - 0x65]
push eax
lea edx, [ebp - 0x64]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x9e4c]
mov ecx, esi
call fcn.004cd72c
test al, al
je 0x610e85
xor eax, eax
mov dword [ebp - 0x70], eax
cmp dword [ebp - 0x60], 0
jle 0x610e36
mov eax, dword [ebp - 0x64]
cmp dword [eax + 0xc], 0xffffffff
jne 0x610dce
cmp dword [eax + 8], 0xfffffffe
je 0x610e36
mov eax, dword [ebp - 0x64]
cmp dword [eax + 0xc], 0xffffffff
jne 0x610ddd
cmp dword [eax + 8], 0xffffffff
je 0x610e36
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x9e4c]
mov eax, dword [eax + 0x5c]
xor edx, edx
push edx
push eax
mov eax, dword [ebp - 0x64]
mov edx, dword [eax + 0xc]
mov eax, dword [eax + 8]
call fcn.00405158
push edx
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x9e4c]
mov edx, dword [eax + 0x58]
mov eax, dword [eax + 0x54]
add eax, dword [esp]
adc edx, dword [esp + 4]
add esp, 8
push edx
push eax
lea edx, [ebp - 0x70]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xa98]
mov eax, dword [eax + 0x2804]
call fcn.004ee5f0
mov dword [ebp - 0x6c], eax
jmp 0x610e3b
xor eax, eax
mov dword [ebp - 0x6c], eax
lea eax, [ebp - 0x64]
call fcn.0049f080
cmp dword [ebp - 0x6c], 0
je 0x610e85
lea eax, [ebx + edi*2 + 0x34]
mov edx, 0x6111e4
mov ecx, 1
call fcn.00414414
add edi, eax
mov eax, dword [ebp - 0x70]
add eax, edi
cmp eax, 0xff
jle 0x610e74
mov eax, 0xff
sub eax, edi
mov dword [ebp - 0x70], eax
lea eax, [ebx + edi*2 + 0x34]
mov ecx, dword [ebp - 0x70]
mov edx, dword [ebp - 0x6c]
call fcn.00414414
add edi, eax
mov word [ebx + edi*2 + 0x34], 0
xor eax, eax
mov dword [ebx + 0xc], eax
xor eax, eax
mov dword [ebx + 8], eax
mov eax, dword [ebp - 0x44]
cdq
lea ecx, [ebx + 0x2c]
mov dword [ecx], eax
mov dword [ecx + 4], edx
mov eax, dword [ebp - 0x44]
mov dword [ebx + 0x238], eax
mov eax, dword [ebp - 0x54]
mov dword [ebx + 0x23c], eax
cmp dword [ebp - 0x54], 0
jne 0x610ed0
mov dword [ebx + 0x240], 0xffffffff
mov dword [ebx + 0x244], 0xffffffff
jmp 0x610ee2
mov eax, dword [ebp - 0x50]
mov dword [ebx + 0x240], eax
mov eax, dword [ebp - 0x4c]
mov dword [ebx + 0x244], eax
cmp byte [ebp - 0x31], 0
je 0x610eef
or dword [ebx + 0x14], 0x4000000
test esi, esi
jne 0x610f03
mov dword [ebx + 0x24], 0
mov dword [ebx + 0x28], 0
jmp 0x610f50
cmp dword [ebp + 0x1c], 0x98
jb 0x610f40
mov eax, esi
lea edx, [eax + 0x88]
lea ecx, [eax + 0x80]
sub edx, ecx
add edx, 4
movzx eax, word [eax + 0x80]
cmp edx, eax
jg 0x610f40
mov edx, dword [esi + 0x88]
mov eax, dword [esi + 0x10]
call fcn.006101dc
mov dword [ebx + 0x24], eax
mov dword [ebx + 0x28], edx
jmp 0x610f50
mov eax, dword [esi + 0x10]
xor edx, edx
call fcn.006101dc
mov dword [ebx + 0x24], eax
mov dword [ebx + 0x28], edx
cmp dword [ebp + 0x18], 0
je 0x61113a
mov eax, dword [ebp + 0x18]
lea edx, [eax + 0x46]
mov ecx, eax
sub edx, ecx
xor ecx, ecx
call fcn.004032f4
mov eax, dword [ebx + 0x14]
mov edx, dword [ebp + 0x18]
mov dword [edx + 8], eax
mov eax, dword [ebx + 0x10]
mov edx, dword [ebp + 0x18]
mov dword [edx + 0x10], eax
mov eax, dword [ebx + 0x248]
mov edx, dword [ebp + 0x18]
mov dword [edx + 0x14], eax
mov eax, dword [ebx + 0x24c]
mov edx, dword [ebp + 0x18]
mov dword [edx + 0x18], eax
test esi, esi
je 0x611103
cmp dword [ebp + 0x1c], 0x98
jb 0x610fdb
lea eax, [esi + 0x84]
lea edx, [esi + 0x80]
sub eax, edx
add eax, 4
movzx edx, word [esi + 0x80]
cmp eax, edx
jg 0x610fdb
mov edx, dword [esi + 0x84]
mov eax, dword [esi + 0xc]
call fcn.006101dc
mov ecx, dword [ebp + 0x18]
mov dword [ecx + 0x34], eax
mov dword [ecx + 0x38], edx
jmp 0x610fee
mov eax, dword [esi + 0xc]
xor edx, edx
call fcn.006101dc
mov ecx, dword [ebp + 0x18]
mov dword [ecx + 0x34], eax
mov dword [ecx + 0x38], edx
cmp dword [ebp + 0x1c], 0x98
jb 0x61102c
lea eax, [esi + 0x88]
lea edx, [esi + 0x80]
sub eax, edx
add eax, 4
movzx edx, word [esi + 0x80]
cmp eax, edx
jg 0x61102c
mov edx, dword [esi + 0x88]
mov eax, dword [esi + 0x10]
call fcn.006101dc
mov ecx, dword [ebp + 0x18]
mov dword [ecx + 0x2c], eax
mov dword [ecx + 0x30], edx
jmp 0x61103f
mov eax, dword [esi + 0x10]
xor edx, edx
call fcn.006101dc
mov ecx, dword [ebp + 0x18]
mov dword [ecx + 0x2c], eax
mov dword [ecx + 0x30], edx
cmp dword [ebp + 0x1c], 0x98
jb 0x61107d
lea eax, [esi + 0x8c]
lea edx, [esi + 0x80]
sub eax, edx
add eax, 4
movzx edx, word [esi + 0x80]
cmp eax, edx
jg 0x61107d
mov edx, dword [esi + 0x8c]
mov eax, dword [esi + 8]
call fcn.006101dc
mov ecx, dword [ebp + 0x18]
mov dword [ecx + 0x24], eax
mov dword [ecx + 0x28], edx
jmp 0x611090
mov eax, dword [esi + 8]
xor edx, edx
call fcn.006101dc
mov ecx, dword [ebp + 0x18]
mov dword [ecx + 0x24], eax
mov dword [ecx + 0x28], edx
cmp dword [ebp + 0x1c], 0x98
jb 0x611103
lea eax, [esi + 0x90]
lea edx, [esi + 0x80]
sub eax, edx
add eax, 4
movzx edx, word [esi + 0x80]
cmp eax, edx
jg 0x611103
lea eax, [esi + 0x94]
lea edx, [esi + 0x80]
sub eax, edx
add eax, 4
movzx edx, word [esi + 0x80]
cmp eax, edx
jg 0x6110ed
mov edx, dword [esi + 0x94]
mov eax, dword [esi + 0x90]
call fcn.006101dc
mov ecx, dword [ebp + 0x18]
mov dword [ecx + 0x1c], eax
mov dword [ecx + 0x20], edx
jmp 0x611103
mov eax, dword [esi + 0x90]
xor edx, edx
call fcn.006101dc
mov ecx, dword [ebp + 0x18]
mov dword [ecx + 0x1c], eax
mov dword [ecx + 0x20], edx
mov eax, dword [ebp + 0x18]
mov edx, dword [ebx + 0x1c]
mov dword [eax + 0x3c], edx
mov edx, dword [ebx + 0x20]
mov dword [eax + 0x40], edx
mov eax, dword [ebx + 0x238]
cdq
mov ecx, dword [ebp + 0x18]
mov dword [ecx], eax
mov dword [ecx + 4], edx
lea edx, [ebx + 0x34]
mov eax, dword [ebp + 0x18]
add eax, 0x44
mov ecx, 0x103
call fcn.0040da74
mov edx, dword [ebp + 0x18]
mov dword [edx + 0xc], eax
mov eax, dword [ebp + 0x20]
cmp byte [eax], 0
je 0x611156
test esi, esi
je 0x611156
lea eax, [ebp - 0x2f0]
cmp esi, eax
je 0x611156
mov eax, dword [ebp + 0x20]
mov byte [eax], 0
mov eax, dword [ebp + 0x20]
cmp byte [eax], 0
jne 0x611166
test esi, esi
jne 0x611166
xor eax, eax
jmp 0x611168
mov al, 1
mov byte [ebp - 0x11], al
movzx eax, byte [ebp - 0x11]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x30