Function at 0x57120
Capabilities:
Check for software breakpoints

Disassembly:
sub esp, 0x20
push ebx
push ebp
mov ebp, dword [esp + 0x30]
mov edx, dword [ebp + 0x20]
cmp byte [edx + 0x31], 6
mov eax, dword [ebp + 0x44]
mov ecx, dword [ebp + 0x40]
push esi
push edi
mov dword [esp + 0x14], eax
mov dword [esp + 0x1c], ecx
jne 0x5714f
cmp byte [ebp + 0x28], 0xcc
jne 0x5714f
mov ebx, 1
jmp 0x57151
xor ebx, ebx
mov esi, dword [esp + 0x34]
mov eax, dword [esi + 0x38]
mov edi, dword [esi + 0x34]
lea ecx, [ecx + ecx*4]
add ecx, ecx
lea edx, [ecx + eax + 0x74]
cmp edx, dword [esi + 0x3c]
mov dword [esp + 0x20], ebx
mov dword [esp + 0x18], 0
jbe 0x57187
add ecx, 0x74
mov eax, esi
call fcn.00032180
test eax, eax
js 0x57637
test ebx, ebx
je 0x571ca
mov dword [edi + eax*4], 0x402ac
mov dword [edi + eax*4 + 4], 3
add eax, 1
add eax, 1
mov dword [edi + eax*4], 0x40200
add eax, 1
mov dword [edi + eax*4], 0xcf
add eax, 1
mov dword [edi + eax*4], 0x40230
add eax, 1
mov dword [edi + eax*4], 0xcf
add eax, 1
jmp 0x571db
test byte [ebp + 0x29], 4
je 0x571db
lea edx, [ebp + 0x2c]
push esi
mov ecx, edi
call fcn.00056d20
mov edx, dword [esp + 0x34]
mov ebx, dword [ebp + 0x20]
mov edx, dword [edx + 0xd50]
cmp edx, dword [ebx + 0x10]
mov esi, dword [ebp + 0x24]
mov ecx, eax
jne 0x57205
mov edx, dword [esp + 0x34]
mov edx, dword [edx + 0xd54]
cmp edx, dword [ebx + 0x14]
je 0x5730b
mov dword [edi + eax*4], 0x40184
lea ecx, [eax + 1]
mov eax, dword [ebx + 0x14]
xor al, al
add ecx, 1
xor edx, edx
add ecx, 1
mov dword [edi + ecx*4 - 8], eax
mov dword [edi + ecx*4 - 4], 0x40204
cmp byte [ebx + 0x36], dl
sete dl
add ecx, 1
add ecx, 1
add ecx, 1
add ecx, 1
mov dword [edi + ecx*4 - 0x10], edx
mov dword [edi + ecx*4 - 0xc], 0x40208
movzx eax, word [ebx + 0x34]
mov dword [edi + ecx*4 - 8], eax
mov dword [edi + ecx*4 - 4], 0x40214
mov dl, byte [ebx + 0x33]
and dl, 2
neg dl
sbb edx, edx
neg edx
add edx, 1
imul edx, dword [ebx + 0xc]
mov dword [edi + ecx*4], edx
mov dword [edi + ecx*4 + 4], 0x40218
movzx eax, byte [ebx + 0x33]
movzx ebp, byte [ebx + 0x32]
add ecx, 1
and al, 2
add ecx, 1
neg al
sbb eax, eax
neg eax
add eax, 1
imul eax, dword [ebx + 0xc]
xor edx, edx
div ebp
add ecx, 1
add ecx, 1
mov ebp, dword [esp + 0x38]
mov dword [edi + ecx*4 - 8], eax
mov dword [edi + ecx*4 - 4], 0x4021c
movzx eax, byte [ebx + 0x33]
and al, 4
neg al
sbb eax, eax
neg eax
add eax, 1
imul eax, dword [ebx + 4]
mov dword [edi + ecx*4], eax
mov dword [edi + ecx*4 + 4], 0x40220
mov edx, dword [ebx + 0x14]
add ecx, 1
add ecx, 1
and edx, 0xff
mov dword [edi + ecx*4], edx
mov edx, dword [esp + 0x34]
mov dword [edi + ecx*4 + 4], 0x40224
mov eax, dword [ebx + 0x10]
add ecx, 1
mov dword [edi + ecx*4 + 4], eax
mov eax, dword [ebx + 0x10]
add ecx, 1
mov dword [edx + 0xd50], eax
mov eax, dword [ebx + 0x14]
add ecx, 1
mov dword [edx + 0xd54], eax
jmp 0x5730f
mov edx, dword [esp + 0x34]
mov eax, dword [edx + 0xd58]
cmp eax, dword [esi + 0x10]
jne 0x57329
mov eax, dword [edx + 0xd5c]
cmp eax, dword [esi + 0x14]
je 0x5742a
mov dword [edi + ecx*4], 0x40188
mov edx, dword [esi + 0x14]
xor dl, dl
add ecx, 1
xor eax, eax
add ecx, 1
add ecx, 1
mov dword [edi + ecx*4 - 8], edx
mov dword [edi + ecx*4 - 4], 0x40234
cmp byte [esi + 0x36], al
sete al
add ecx, 1
add ecx, 1
add ecx, 1
add ecx, 1
mov dword [edi + ecx*4 - 0x10], eax
mov dword [edi + ecx*4 - 0xc], 0x40238
movzx edx, word [esi + 0x34]
mov dword [edi + ecx*4 - 8], edx
mov dword [edi + ecx*4 - 4], 0x40244
movzx eax, byte [esi + 0x33]
and al, 2
neg al
sbb eax, eax
neg eax
add eax, 1
imul eax, dword [esi + 0xc]
mov dword [edi + ecx*4], eax
mov dword [edi + ecx*4 + 4], 0x40248
movzx eax, byte [esi + 0x33]
movzx ebx, byte [esi + 0x32]
add ecx, 1
and al, 2
add ecx, 1
neg al
sbb eax, eax
neg eax
add eax, 1
imul eax, dword [esi + 0xc]
xor edx, edx
div ebx
add ecx, 1
add ecx, 1
mov dword [edi + ecx*4 - 8], eax
mov dword [edi + ecx*4 - 4], 0x4024c
mov dl, byte [esi + 0x33]
and dl, 4
neg dl
sbb edx, edx
neg edx
add edx, 1
imul edx, dword [esi + 4]
mov dword [edi + ecx*4], edx
mov dword [edi + ecx*4 + 4], 0x40250
mov eax, dword [esi + 0x14]
add ecx, 1
add ecx, 1
and eax, 0xff
mov dword [edi + ecx*4], eax
mov eax, dword [esp + 0x34]
mov dword [edi + ecx*4 + 4], 0x40254
mov edx, dword [esi + 0x10]
add ecx, 1
mov dword [edi + ecx*4 + 4], edx
mov edx, dword [esi + 0x10]
add ecx, 1
mov dword [eax + 0xd58], edx
mov edx, dword [esi + 0x14]
mov dword [eax + 0xd5c], edx
add ecx, 1
mov edx, eax
cmp dword [edx + 0xd74], 0
je 0x5747f
mov dword [edx + 0xd74], 0
mov dword [edi + ecx*4], 0x140280
mov dword [edi + ecx*4 + 4], 0
add ecx, 1
mov dword [edi + ecx*4 + 4], 0
mov eax, dword [edx + 0xd1c]
add ecx, 1
add ecx, 1
mov dword [edi + ecx*4], eax
mov eax, dword [edx + 0xd20]
add ecx, 1
mov dword [edi + ecx*4], eax
add ecx, 1
mov dword [edi + ecx*4], 1
add ecx, 1
mov esi, dword [ebp + 0x28]
and esi, 0xff
cmp dword [edx + 0xd70], esi
mov eax, ecx
je 0x574a8
mov dword [edx + 0xd70], esi
lea eax, [ecx + 1]
mov dword [edi + ecx*4], 0x402a0
mov dword [edi + eax*4], esi
add eax, 1
mov dword [edi + eax*4], 0x40000
mov dword [edi + eax*4 + 4], 0x8802d000
add eax, 1
add eax, 1
mov dword [edx + 0xd2c], 0x8802d000
mov dword [edi + eax*4], fcn.000408c0
mov dword [edi + eax*4 + 4], 0
add eax, 1
mov dword [edi + eax*4 + 4], 0x408c4
add eax, 1
mov dword [edi + eax*4 + 4], 1
add eax, 1
add eax, 1
mov dword [edi + eax*4], 0x408c8
add eax, 1
mov dword [edi + eax*4], 0
add eax, 1
mov dword [edi + eax*4], 0x408cc
add eax, 1
mov dword [edi + eax*4], 1
add eax, 1
jmp 0x57520
mov ebp, dword [esp + 0x38]
mov edx, dword [esp + 0x14]
mov esi, dword [edx + 4]
mov ecx, dword [edx]
mov ebx, dword [edx + 8]
mov dword [esp + 0x10], esi
mov esi, dword [edx + 0xc]
sub esi, dword [esp + 0x10]
mov edx, dword [ebp + 0x14]
sub edx, dword [ebp + 4]
sub ebx, ecx
mov dword [esp + 0x2c], esi
imul esi, ebx
add dword [esp + 0x18], esi
add edx, dword [esp + 0x10]
add eax, 1
mov dword [esp + 0x24], ecx
sub ecx, dword [ebp]
mov esi, dword [esp + 0x24]
add ecx, dword [ebp + 0x10]
mov dword [edi + eax*4 - 4], 0x1008b0
mov dword [edi + eax*4], esi
mov esi, dword [esp + 0x10]
mov dword [edi + eax*4 + 4], esi
mov esi, dword [esp + 0x2c]
add eax, 1
add dword [esp + 0x14], 0x10
mov dword [edi + eax*4 + 4], ebx
add eax, 1
mov dword [edi + eax*4 + 4], esi
add eax, 1
add eax, 1
mov dword [edi + eax*4], 0x1008d0
add eax, 1
mov dword [edi + eax*4], 0
add eax, 1
mov dword [edi + eax*4], ecx
add eax, 1
mov dword [edi + eax*4], 0
add eax, 1
mov dword [edi + eax*4], edx
add eax, 1
sub dword [esp + 0x1c], 1
jne 0x5751c
cmp dword [esp + 0x20], 0
je 0x57608
mov dword [edi + eax*4], 0x402ac
mov dword [edi + eax*4 + 4], 4
add eax, 1
add eax, 1
mov dword [edi + eax*4], 0x40200
add eax, 1
mov dword [edi + eax*4], 0xe6
add eax, 1
mov dword [edi + eax*4], 0x40230
add eax, 1
mov dword [edi + eax*4], 0xe6
add eax, 1
mov esi, dword [esp + 0x34]
call fcn.000320b0
mov ecx, dword [esp + 0x38]
mov edx, dword [ecx + 0x28]
shr edx, 8
and edx, 7
mov eax, dword [edx*4 + 0x3fa078]
imul eax, dword [esp + 0x18]
add dword [esi + 0xdf0], eax
js 0x57637
call fcn.0004cdc0
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x20
ret 8