Function at 0x422074
Capabilities:
Check for software breakpoints

Disassembly:
push ebp
mov ebp, esp
push ecx
mov ecx, 0x19
push 0
push 0
dec ecx
jne 0x42207d
push ecx
xchg dword [ebp - 4], ecx
push ebx
push esi
push edi
mov ebx, ecx
mov dword [ebp - 0x30], edx
mov esi, eax
xor eax, eax
push ebp
push 0x422ab1
push dword fs:[eax]
mov dword fs:[eax], esp
mov byte [ebp - 0x31], 0
mov dword [esi + 0x50], 0x1f4
lea eax, [esi + 0x54]
call fcn.00404738
xor eax, eax
mov dword [esi + 0x60], eax
xor eax, eax
mov dword [esi + 0x64], eax
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x24]
push eax
lea ecx, [ebp - 0xc]
lea edx, [ebp - 8]
mov eax, ebx
call fcn.00419378
cmp dword [ebp - 0xc], 0
jne 0x4220fe
lea eax, [ebp - 0xc]
mov edx, dword [esi + 0x14]
call fcn.004047d0
lea eax, [ebp - 0x10]
mov edx, dword [esi + 0x18]
call fcn.004047d0
lea edx, [ebp - 0x40]
mov eax, dword [ebp - 8]
call fcn.0040797c
mov eax, dword [ebp - 0x40]
mov edx, 0x422acc
call fcn.00404b3c
jne 0x422162
cmp dword [esi + 0x40], 0
setne byte [ebp - 0x35]
mov eax, dword [esi + 0x1c]
add eax, 0x20c
mov edx, dword [esi + 0x40]
call fcn.0040478c
mov eax, dword [esi + 0x1c]
add eax, 0x210
mov edx, dword [esi + 0x44]
call fcn.0040478c
mov eax, dword [esi + 0x1c]
add eax, 0x220
mov edx, dword [esi + 0x48]
call fcn.0040478c
mov eax, dword [esi + 0x1c]
add eax, 0x224
mov edx, dword [esi + 0x4c]
call fcn.0040478c
jmp 0x42219a
mov byte [ebp - 0x35], 0
mov eax, dword [esi + 0x1c]
add eax, 0x20c
call fcn.00404738
mov eax, dword [esi + 0x1c]
add eax, 0x210
call fcn.00404738
mov eax, dword [esi + 0x1c]
add eax, 0x220
call fcn.00404738
mov eax, dword [esi + 0x1c]
add eax, 0x224
call fcn.00404738
mov eax, dword [esi + 0x30]
mov edx, dword [eax]
call dword [edx]
cmp edx, 0
jne 0x4221ae
cmp eax, 0
seta al
jmp 0x4221b1
setg al
mov byte [ebp - 0x32], al
movzx eax, byte [esi + 0x3d]
and al, byte [ebp - 0x32]
je 0x4221cc
mov eax, dword [esi + 0x38]
mov edx, 0x422adc
call fcn.00404b3c
je 0x4221d0
xor eax, eax
jmp 0x4221d2
mov al, 1
mov byte [ebp - 0x33], al
cmp byte [ebp - 0x33], 0
je 0x4221ea
mov ecx, 0x422ae8
xor edx, edx
mov eax, dword [esi + 0x2c]
mov ebx, dword [eax]
call dword [ebx + 0x60]
cmp byte [ebp - 0x32], 0
je 0x422241
mov eax, dword [esi + 0x30]
mov edx, dword [eax]
call dword [edx]
push edx
push eax
lea eax, [ebp - 0x48]
call fcn.00407dbc
mov ecx, dword [ebp - 0x48]
lea eax, [ebp - 0x44]
mov edx, 0x422b08
call fcn.00404a2c
mov ecx, dword [ebp - 0x44]
xor edx, edx
mov eax, dword [esi + 0x2c]
mov ebx, dword [eax]
call dword [ebx + 0x60]
cmp dword [esi + 0x34], 0
je 0x422241
lea eax, [ebp - 0x4c]
mov ecx, dword [esi + 0x34]
mov edx, 0x422b24
call fcn.00404a2c
mov ecx, dword [ebp - 0x4c]
xor edx, edx
mov eax, dword [esi + 0x2c]
mov ebx, dword [eax]
call dword [ebx + 0x60]
cmp dword [esi + 0x58], 0
je 0x422264
lea eax, [ebp - 0x50]
mov ecx, dword [esi + 0x58]
mov edx, 0x422b3c
call fcn.00404a2c
mov ecx, dword [ebp - 0x50]
xor edx, edx
mov eax, dword [esi + 0x2c]
mov ebx, dword [eax]
call dword [ebx + 0x60]
mov ebx, dword [esi + 0x68]
test ebx, ebx
jle 0x4222e2
cmp ebx, dword [esi + 0x6c]
jg 0x4222b1
push 0x422b54
lea edx, [ebp - 0x58]
mov eax, ebx
call fcn.00407cd0
push dword [ebp - 0x58]
push 0x422b6c
lea edx, [ebp - 0x5c]
mov eax, dword [esi + 0x6c]
call fcn.00407cd0
push dword [ebp - 0x5c]
lea eax, [ebp - 0x54]
mov edx, 4
call fcn.00404aa8
mov ecx, dword [ebp - 0x54]
xor edx, edx
mov eax, dword [esi + 0x2c]
mov ebx, dword [eax]
call dword [ebx + 0x60]
jmp 0x4222e2
push 0x422b54
lea edx, [ebp - 0x64]
mov eax, ebx
call fcn.00407cd0
push dword [ebp - 0x64]
push 0x422b6c
lea eax, [ebp - 0x60]
mov edx, 3
call fcn.00404aa8
mov ecx, dword [ebp - 0x60]
xor edx, edx
mov eax, dword [esi + 0x2c]
mov ebx, dword [eax]
call dword [ebx + 0x60]
lea eax, [ebp - 0x28]
call fcn.00404738
mov eax, dword [esi + 0x5c]
mov edx, dword [eax]
call dword [edx + 0x14]
mov ebx, eax
dec ebx
test ebx, ebx
jl 0x422333
inc ebx
mov dword [ebp - 0x3c], 0
cmp dword [ebp - 0x28], 0
je 0x422314
lea eax, [ebp - 0x28]
mov edx, 0x422b78
call fcn.004049e0
lea ecx, [ebp - 0x68]
mov edx, dword [ebp - 0x3c]
mov eax, dword [esi + 0x5c]
mov edi, dword [eax]
call dword [edi + 0xc]
mov edx, dword [ebp - 0x68]
lea eax, [ebp - 0x28]
call fcn.004049e0
inc dword [ebp - 0x3c]
dec ebx
jne 0x422301
cmp dword [ebp - 0x28], 0
je 0x422356
lea eax, [ebp - 0x6c]
mov ecx, dword [ebp - 0x28]
mov edx, 0x422b84
call fcn.00404a2c
mov ecx, dword [ebp - 0x6c]
xor edx, edx
mov eax, dword [esi + 0x2c]
mov ebx, dword [eax]
call dword [ebx + 0x60]
cmp byte [esi + 0x3c], 0
jne 0x42236b
mov ecx, 0x422b98
xor edx, edx
mov eax, dword [esi + 0x2c]
mov ebx, dword [eax]
call dword [ebx + 0x60]
cmp dword [ebp - 0xc], 0
je 0x4223b1
push dword [ebp - 0xc]
push 0x422bb4
push dword [ebp - 0x10]
lea eax, [ebp - 0x78]
mov edx, 3
call fcn.00404aa8
mov eax, dword [ebp - 0x78]
lea edx, [ebp - 0x74]
call fcn.0041a5d0
mov ecx, dword [ebp - 0x74]
lea eax, [ebp - 0x70]
mov edx, 0x422bc0
call fcn.00404a2c
mov ecx, dword [ebp - 0x70]
xor edx, edx
mov eax, dword [esi + 0x2c]
mov ebx, dword [eax]
call dword [ebx + 0x60]
cmp dword [esi + 0x40], 0
je 0x422409
cmp dword [esi + 0x48], 0
je 0x422409
cmp byte [ebp - 0x35], 0
jne 0x422409
push dword [esi + 0x48]
push 0x422bb4
push dword [esi + 0x4c]
lea eax, [ebp - 0x84]
mov edx, 3
call fcn.00404aa8
mov eax, dword [ebp - 0x84]
lea edx, [ebp - 0x80]
call fcn.0041a5d0
mov ecx, dword [ebp - 0x80]
lea eax, [ebp - 0x7c]
mov edx, 0x422be0
call fcn.00404a2c
mov ecx, dword [ebp - 0x7c]
xor edx, edx
mov eax, dword [esi + 0x2c]
mov ebx, dword [eax]
call dword [ebx + 0x60]
mov eax, dword [ebp - 0x14]
call fcn.00419e18
test al, al
je 0x422431
push 0x422c04
push dword [ebp - 0x14]
push 0x422c10
lea eax, [ebp - 0x28]
mov edx, 3
call fcn.00404aa8
jmp 0x42243c
lea eax, [ebp - 0x28]
mov edx, dword [ebp - 0x14]
call fcn.004047d0
mov eax, dword [ebp - 0x18]
mov edx, 0x422c1c
call fcn.00404b3c
je 0x42247d
push 0x422c28
push dword [ebp - 0x28]
push 0x422bb4
push dword [ebp - 0x18]
lea eax, [ebp - 0x88]
mov edx, 4
call fcn.00404aa8
mov ecx, dword [ebp - 0x88]
xor edx, edx
mov eax, dword [esi + 0x2c]
mov ebx, dword [eax]
call dword [ebx + 0x60]
jmp 0x4224a0
lea eax, [ebp - 0x8c]
mov ecx, dword [ebp - 0x28]
mov edx, 0x422c28
call fcn.00404a2c
mov ecx, dword [ebp - 0x8c]
xor edx, edx
mov eax, dword [esi + 0x2c]
mov ebx, dword [eax]
call dword [ebx + 0x60]
cmp dword [esi + 0x40], 0
je 0x4224cf
cmp byte [ebp - 0x35], 0
jne 0x4224cf
push dword [ebp - 8]
push 0x422c38
push dword [ebp - 0x28]
push 0x422bb4
push dword [ebp - 0x18]
push dword [ebp - 0x24]
lea eax, [ebp - 0x24]
mov edx, 6
call fcn.00404aa8
mov eax, dword [ebp - 0x24]
mov edx, 0x422c44
call fcn.00404b3c
jne 0x4224eb
lea eax, [ebp - 0x24]
mov edx, 0x422c50
call fcn.004047d0
mov eax, dword [esi + 0x38]
mov edx, 0x422c5c
call fcn.00404b3c
jne 0x422538
lea edx, [ebp - 0x94]
mov eax, dword [ebp - 0x30]
call fcn.0040797c
push dword [ebp - 0x94]
push 0x422c68
push dword [ebp - 0x24]
lea eax, [ebp - 0x90]
mov edx, 3
call fcn.00404aa8
mov ecx, dword [ebp - 0x90]
xor edx, edx
mov eax, dword [esi + 0x2c]
mov ebx, dword [eax]
call dword [ebx + 0x60]
jmp 0x42257c
lea edx, [ebp - 0x9c]
mov eax, dword [ebp - 0x30]
call fcn.0040797c
push dword [ebp - 0x9c]
push 0x422c68
push dword [ebp - 0x24]
push 0x422c74
push dword [esi + 0x38]
lea eax, [ebp - 0x98]
mov edx, 5
call fcn.00404aa8
mov ecx, dword [ebp - 0x98]
xor edx, edx
mov eax, dword [esi + 0x2c]
mov ebx, dword [eax]
call dword [ebx + 0x60]
cmp dword [esi + 0x40], 0
je 0x4225a0
cmp byte [ebp - 0x35], 0
jne 0x4225a0
lea eax, [esi + 4]
mov edx, dword [esi + 0x40]
call fcn.0040478c
lea eax, [esi + 8]
mov edx, dword [esi + 0x44]
call fcn.0040478c
jmp 0x4225b6
lea eax, [esi + 4]
mov edx, dword [ebp - 0x14]
call fcn.0040478c
lea eax, [esi + 8]
mov edx, dword [ebp - 0x18]
call fcn.0040478c
mov ebx, dword [esi + 0x2c]
mov eax, ebx
mov edx, dword [eax]
call dword [edx + 0x14]
mov edx, eax
dec edx
lea ecx, [ebp - 0xa0]
mov eax, ebx
mov ebx, dword [eax]
call dword [ebx + 0xc]
cmp dword [ebp - 0xa0], 0
je 0x4225e3
xor edx, edx
mov eax, dword [esi + 0x2c]
mov ecx, dword [eax]
call dword [ecx + 0x38]
lea edx, [ebp - 0xa4]
mov eax, dword [ebp - 8]
call fcn.0040797c
mov eax, dword [ebp - 0xa4]
mov edx, 0x422acc
call fcn.00404b3c
sete dl
mov eax, esi
call fcn.00422018
test al, al
jne 0x42262c
mov eax, dword [esi + 0x1c]
mov edx, dword [eax]
call dword [edx + 0xc]
lea eax, [esi + 0x24]
call fcn.00404738
lea eax, [esi + 0x28]
call fcn.00404738
jmp 0x422a86
push 0
push 0
mov eax, dword [esi + 0x30]
call fcn.00412eb8
lea eax, [ebp - 4]
call fcn.00404738
cmp byte [ebp - 0x33], 0
je 0x42270e
lea edx, [ebp - 0xa8]
mov eax, esi
call fcn.00421f04
mov edx, dword [ebp - 0xa8]
mov eax, dword [esi + 0x1c]
mov ecx, dword [eax]
call dword [ecx + 0x20]
mov eax, dword [esi + 0x1c]
cmp dword [eax + 0x1c8], 0
jne 0x422a86
lea ecx, [ebp - 0x28]
mov edx, dword [esi + 0x10]
mov eax, dword [esi + 0x1c]
mov ebx, dword [eax]
call dword [ebx + 0x4c]
cmp dword [ebp - 0x28], 0
jne 0x422695
mov eax, dword [esi + 0x1c]
cmp dword [eax + 0x1c8], 0
je 0x422675
mov edx, dword [ebp - 0x28]
mov eax, esi
call fcn.00421e34
lea eax, [ebp - 4]
mov edx, dword [ebp - 0x28]
call fcn.004047d0
lea ecx, [ebp - 0x28]
mov edx, dword [esi + 0x10]
mov eax, dword [esi + 0x1c]
mov ebx, dword [eax]
call dword [ebx + 0x4c]
cmp dword [ebp - 0x28], 0
je 0x4226ca
mov eax, dword [esi + 0x1c]
cmp dword [eax + 0x1c8], 0
je 0x4226aa
mov eax, dword [esi + 0x50]
cmp eax, 0x64
jl 0x4227de
cmp eax, 0xc8
jge 0x4227de
lea eax, [ebp - 4]
call fcn.00404738
mov eax, dword [esi + 0x30]
mov edx, dword [eax]
call dword [edx]
mov dword [esi + 0x64], eax
mov ebx, dword [esi + 0x30]
mov eax, ebx
mov edx, dword [eax]
call dword [edx]
mov ecx, eax
mov edx, dword [ebx + 4]
mov eax, dword [esi + 0x1c]
mov ebx, dword [eax]
call dword [ebx + 0x18]
jmp 0x4227de
cmp byte [ebp - 0x32], 0
je 0x4227c3
mov eax, dword [esi + 0x30]
mov edx, dword [eax]
call dword [edx]
cmp edx, 0
jne 0x42272d
cmp eax, 0x10000
jb 0x42276c
jmp 0x42272f
jl 0x42276c
lea edx, [ebp - 0xac]
mov eax, esi
call fcn.00421f04
mov edx, dword [ebp - 0xac]
mov eax, dword [esi + 0x1c]
mov ecx, dword [eax]
call dword [ecx + 0x20]
mov eax, dword [esi + 0x30]
mov edx, dword [eax]
call dword [edx]
mov dword [esi + 0x64], eax
mov ebx, dword [esi + 0x30]
mov eax, ebx
mov edx, dword [eax]
call dword [edx]
mov ecx, eax
mov edx, dword [ebx + 4]
mov eax, dword [esi + 0x1c]
mov ebx, dword [eax]
call dword [ebx + 0x18]
jmp 0x4227de
mov ebx, dword [esi + 0x30]
mov eax, ebx
mov edx, dword [eax]
call dword [edx]
mov edx, eax
lea ecx, [ebp - 0xb0]
mov eax, ebx
call fcn.00419c00
mov eax, dword [ebp - 0xb0]
push eax
lea edx, [ebp - 0xb4]
mov eax, esi
call fcn.00421f04
mov edx, dword [ebp - 0xb4]
lea eax, [ebp - 0x28]
pop ecx
call fcn.00404a2c
mov eax, dword [ebp - 0x28]
test eax, eax
je 0x4227b3
sub eax, 4
mov eax, dword [eax]
mov dword [esi + 0x64], eax
mov edx, dword [ebp - 0x28]
mov eax, dword [esi + 0x1c]
mov ecx, dword [eax]
call dword [ecx + 0x20]
jmp 0x4227de
lea edx, [ebp - 0xb8]
mov eax, esi
call fcn.00421f04
mov edx, dword [ebp - 0xb8]
mov eax, dword [esi + 0x1c]
mov ecx, dword [eax]
call dword [ecx + 0x20]
mov eax, dword [esi + 0x1c]
cmp dword [eax + 0x1c8], 0
jne 0x422a86
mov eax, esi
call fcn.00421df4
or ebx, 0xffffffff
mov byte [esi + 0x20], 0
cmp dword [ebp - 4], 0
jne 0x422879
lea ecx, [ebp - 0x28]
mov edx, dword [esi + 0x10]
mov eax, dword [esi + 0x1c]
mov edi, dword [eax]
call dword [edi + 0x4c]
cmp dword [ebp - 0x28], 0
jne 0x422822
mov eax, dword [esi + 0x1c]
cmp dword [eax + 0x1c8], 0
je 0x422802
lea edx, [ebp - 0xbc]
mov eax, dword [ebp - 0x28]
call fcn.0040797c
mov edx, dword [ebp - 0xbc]
mov eax, 0x422c84
call fcn.00404c94
dec eax
jne 0x42285a
mov edx, dword [ebp - 0x28]
mov eax, dword [esi + 0x2c]
mov ecx, dword [eax]
call dword [ecx + 0x38]
mov edx, dword [ebp - 0x28]
mov eax, esi
call fcn.00421e34
jmp 0x422884
lea eax, [ebp - 0x28]
mov edx, 0x422c94
call fcn.004049e0
mov edx, dword [ebp - 0x28]
mov eax, dword [esi + 0x30]
call fcn.00419c30
xor eax, eax
mov dword [esi + 0x50], eax
jmp 0x422884
mov edx, dword [ebp - 4]
mov eax, dword [esi + 0x2c]
mov ecx, dword [eax]
call dword [ecx + 0x38]
mov eax, dword [esi + 0x38]
mov edx, 0x422adc
call fcn.00404b3c
setne byte [ebp - 0x34]
mov eax, dword [esi + 0x2c]
mov edx, dword [eax]
call dword [edx + 0x14]
test eax, eax
jle 0x4229cf
lea ecx, [ebp - 0x28]
mov edx, dword [esi + 0x10]
mov eax, dword [esi + 0x1c]
mov edi, dword [eax]
call dword [edi + 0x4c]
mov edx, dword [ebp - 0x28]
mov eax, dword [esi + 0x2c]
mov ecx, dword [eax]
call dword [ecx + 0x38]
cmp dword [ebp - 0x28], 0
je 0x4229cf
lea edx, [ebp - 0x2c]
mov eax, dword [ebp - 0x28]
call fcn.0040797c
mov edx, dword [ebp - 0x2c]
mov eax, 0x422ca0
call fcn.00404c94
dec eax
jne 0x422923
lea ecx, [ebp - 0xc4]
mov edx, 0x422c68
mov eax, dword [ebp - 0x28]
call fcn.00419330
mov eax, dword [ebp - 0xc4]
lea edx, [ebp - 0xc0]
call fcn.00407c30
mov eax, dword [ebp - 0xc0]
or edx, 0xffffffff
call fcn.00407e48
mov ebx, eax
cmp ebx, 0xffffffff
je 0x422923
mov byte [esi + 0x20], 1
mov dword [esi + 0x60], ebx
mov edx, dword [ebp - 0x2c]
mov eax, 0x422cb8
call fcn.00404c94
dec eax
jne 0x422965
lea ecx, [ebp - 0xcc]
mov edx, 0x422c68
mov eax, dword [ebp - 0x28]
call fcn.00419330
mov eax, dword [ebp - 0xcc]
lea edx, [ebp - 0xc8]
call fcn.00407c30
mov edx, dword [ebp - 0xc8]
lea eax, [esi + 0x34]
call fcn.0040478c
mov edx, dword [ebp - 0x2c]
mov eax, 0x422cd0
call fcn.00404c94
dec eax
jne 0x4229ab
lea ecx, [ebp - 0xd0]
mov edx, 0x422c68
mov eax, dword [ebp - 0x2c]
call fcn.00419330
mov eax, dword [ebp - 0xd0]
lea edx, [ebp - 0x28]
call fcn.00407c30
mov edx, dword [ebp - 0x28]
mov eax, 0x422cec
call fcn.00404c94
test eax, eax
jle 0x4229ab
mov byte [esi + 0x20], 2
mov edx, dword [ebp - 0x2c]
mov eax, 0x422cfc
call fcn.00404c94
dec eax
jne 0x4229bf
mov byte [ebp - 0x34], 1
mov eax, dword [esi + 0x1c]
cmp dword [eax + 0x1c8], 0
je 0x4228a5
mov eax, dword [esi + 0x1c]
cmp dword [eax + 0x1c8], 0
sete byte [ebp - 0x31]
cmp byte [ebp - 0x31], 0
je 0x422a86
mov eax, dword [ebp - 0x30]
mov edx, 0x422d18
call fcn.00404b3c
setne al
test al, al
je 0x422a04
cmp dword [esi + 0x50], 0xcc
jne 0x422a08
xor eax, eax
jmp 0x422a0a
mov al, 1
test al, al
je 0x422a17
cmp dword [esi + 0x50], 0x130
jne 0x422a1b
xor eax, eax
jmp 0x422a1d
mov al, 1
test al, al
je 0x422a55
movzx eax, byte [esi + 0x20]
sub al, 1
jb 0x422a31
je 0x422a3d
dec al
je 0x422a4b
jmp 0x422a55
mov eax, esi
call fcn.00422d20
mov byte [ebp - 0x31], al
jmp 0x422a55
mov edx, ebx
mov eax, esi
call fcn.00422d98
mov byte [ebp - 0x31], al
jmp 0x422a55
mov eax, esi
call fcn.00422dd8
mov byte [ebp - 0x31], al
xor ecx, ecx
xor edx, edx
mov eax, dword [esi + 0x30]
mov ebx, dword [eax]
call dword [ebx + 0x14]
cmp byte [ebp - 0x34], 0
je 0x422a7f
mov eax, dword [esi + 0x1c]
mov edx, dword [eax]
call dword [edx + 0xc]
lea eax, [esi + 0x24]
call fcn.00404738
lea eax, [esi + 0x28]
call fcn.00404738
mov eax, esi
call fcn.00422efc
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x422ab8
lea eax, [ebp - 0xd0]
mov edx, 0x25
call fcn.0040475c
lea eax, [ebp - 0x2c]
mov edx, 0xb
call fcn.0040475c
ret