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

Disassembly:
sub esp, 0x74
mov eax, dword [esp + 0x84]
xorps xmm0, xmm0
mov ecx, dword [esp + 0x7c]
movlpd qword [esp + 0x4c], xmm0
mov dword [esp + 0x54], 0
push ebx
push esi
push edi
mov edi, dword [esp + 0x84]
mov esi, dword [edi + 8]
mov edx, dword [edi]
mov dword [esp + 0x30], esi
mov dword [esp + 0xc], edx
test eax, eax
je 0x5816b9
xor ebx, ebx
cmp dword [eax], 0x40
cmovge eax, ebx
mov dword [esp + 0x90], eax
mov ebx, dword [ecx]
mov dword [esp + 0x14], ebx
cmp ebx, 0x40
jle 0x5816dd
push 0x40
push str.at_most__d_tables_in_a_join
push edi
call fcn.0053e8f0
add esp, 0xc
xor eax, eax
pop edi
pop esi
pop ebx
add esp, 0x74
ret
mov eax, dword [esp + 0x9c]
test al, 0x20
mov dword [esp + 0x10], eax
mov eax, 0x358
mov dword [esp + 0x38], eax
je 0x581744
mov dword [esp + 0x14], 1
mov ecx, 1
lea ebx, [ecx + ecx*2]
shl ebx, 5
push ebp
add eax, 0x50
push 0
push eax
push edx
call fcn.0053c1d0
mov ebp, eax
add esp, 0xc
mov eax, dword [esp + 0x10]
mov dword [esp + 0x1c], ebp
cmp byte [eax + 0x57], 0
je 0x581768
test ebp, ebp
je 0x582573
push ebp
push eax
call fcn.0053c090
add esp, 8
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x74
ret
mov ecx, ebx
cmp ebx, 1
jle 0x581702
mov ecx, dword [esp + 0x14]
lea ebx, [ebx + ebx*2]
shl ebx, 5
mov dword [esp + 0x14], ecx
lea eax, [ebx + 0x2ff]
and eax, 0xfffffff8
mov dword [esp + 0x38], eax
jmp 0x581708
mov eax, dword [esp + 0x8c]
lea ecx, [ebp + 0x2f8]
mov dword [ebp + 4], eax
xorps xmm0, xmm0
mov eax, dword [esp + 0x94]
mov dword [ebp + 8], eax
mov eax, dword [esp + 0x98]
mov dword [ebp + 0xc], eax
mov eax, dword [esp + 0x18]
mov dword [ebp], edi
mov dword [ebp + 0x18], 0xffffffff
mov dword [ebp + 0x14], 0xffffffff
mov byte [ebp + 0x2c], al
mov eax, dword [edi + 0x38]
dec eax
mov dword [esp + 0x28], ecx
mov dword [edi + 0x38], eax
mov dword [ebp + 0x1c], eax
mov dword [ebp + 0x20], eax
mov eax, dword [esp + 0x14]
mov word [ebp + 0x28], ax
mov eax, dword [esp + 0xa4]
mov word [ebp + 0x2a], ax
mov dword [esp + 0x40], eax
movsx eax, word [edi + 0x9c]
mov dword [ebp + 0x24], eax
mov eax, dword [esp + 0x9c]
mov dword [ebp + 0x10], eax
lea eax, [ebx + 0x50]
push eax
movups xmmword [ebp + 0x2d], xmm0
push 0
movups xmmword [ebp + 0x3d], xmm0
mov word [ebp + 0x4d], 0
push ecx
mov byte [ebp + 0x4f], 0
call fcn.00423ff0
mov ecx, dword [esp + 0x48]
lea edx, [ebp + 0x50]
mov dword [ebp + 0x1f4], 0
add ecx, ebp
mov dword [ebp + 0x1f8], 0xffffff9d
mov dword [esp + 0x5c], ebp
mov dword [esp + 0x60], edx
mov dword [esp + 0x64], ecx
lea eax, [ecx + 0x40]
mov dword [ecx + 0x38], eax
xor eax, eax
mov word [ecx + 0x30], ax
mov eax, 3
mov word [ecx + 0x34], ax
lea eax, [edx + 0x20]
mov dword [ecx + 0x2c], 0
push 0x2c
push dword [esp + 0xa0]
mov dword [esp + 0x4c], edx
push edx
mov dword [edx], ebp
mov byte [edx + 9], 0
mov dword [edx + 4], 0
mov dword [edx + 0xc], 0
mov dword [edx + 0x14], 0
mov dword [edx + 0x10], 8
mov dword [edx + 0x18], eax
call fcn.00586aa0
add esp, 0x18
cmp dword [esp + 0x18], 0
jne 0x5818cc
mov eax, dword [esp + 0x94]
test eax, eax
je 0x58189b
mov al, byte [eax]
mov byte [ebp + 0x2d], al
test dword [esp + 0x14], 0x100
je 0x5818b3
mov eax, dword [esp + 0x10]
test byte [eax + 0x50], 0x10
jne 0x5818b3
mov byte [ebp + 0x2f], 1
push str.SCAN_CONSTANT_ROW
push 0
push edi
call fcn.0057a3e0
mov eax, dword [esp + 0x98]
add esp, 0xc
jmp 0x581917
mov ebx, dword [esp + 0x8c]
xor esi, esi
add ebx, 8
nop dword [eax + eax]
mov ecx, dword [ebp + 0x1f4]
mov eax, dword [ebx + 0x2c]
mov dword [ebp + ecx*4 + 0x1f8], eax
lea eax, [ebp + 0x50]
inc dword [ebp + 0x1f4]
push eax
push ebx
push edi
call fcn.00586b10
mov eax, dword [esp + 0x98]
inc esi
add esp, 0xc
add ebx, 0x48
cmp esi, dword [eax]
jl 0x5818e0
mov esi, dword [esp + 0x34]
mov ebx, dword [ebp + 0x5c]
lea ecx, [ebp + 0x50]
sub ebx, 1
js 0x581945
mov ebp, dword [esp + 0x38]
push ebx
push ebp
push eax
call fcn.004e9270
mov eax, dword [esp + 0x98]
add esp, 0xc
sub ebx, 1
jns 0x581926
mov ebp, dword [esp + 0x1c]
mov ecx, dword [esp + 0x38]
mov eax, dword [esp + 0x9c]
test eax, eax
je 0x581960
cmp dword [eax + 0x3c], 0
je 0x581960
push eax
push ecx
call fcn.00581590
add esp, 8
cmp dword [edi + 0x24], 0
jne 0x58255b
mov eax, dword [esp + 0x54]
cmp dword [eax + 0x14], 0
jle 0x581a44
xor edx, edx
mov ebx, edi
mov dword [esp + 0x30], edx
xor esi, esi
mov eax, dword [esp + 0x54]
mov edi, dword [eax + 0x18]
add edi, edx
test byte [edi + 0xa], 2
jne 0x581a29
mov eax, dword [edi + 0x28]
or eax, dword [edi + 0x2c]
mov ecx, dword [edi]
mov dword [esp + 0x44], ecx
jne 0x581a29
cmp dword [esp + 0x18], eax
je 0x5819fe
mov dword [esp + 0x80], eax
xorps xmm0, xmm0
movq qword [esp + 0x78], xmm0
mov eax, 1
mov word [esp + 0x7c], ax
movups xmmword [esp + 0x68], xmm0
mov dword [esp + 0x6c], 0x4ec780
mov dword [esp + 0x70], 0x568e20
test ecx, ecx
je 0x5819fe
push ecx
lea eax, [esp + 0x6c]
push eax
call fcn.00581150
mov edx, dword [esp + 0x38]
add esp, 8
cmp word [esp + 0x7c], 0
je 0x581a29
mov ecx, dword [esp + 0x44]
test byte [ecx + 4], 2
je 0x581a11
mov eax, dword [esp + 0x8c]
test byte [eax + 0x2c], 0x40
jne 0x581a29
push 0x10
push dword [ebp + 0x20]
push ecx
push ebx
call fcn.00542df0
mov edx, dword [esp + 0x40]
add esp, 0x10
or word [edi + 0xa], 4
mov eax, dword [esp + 0x54]
inc esi
add edx, 0x30
mov dword [esp + 0x30], edx
cmp esi, dword [eax + 0x14]
jl 0x581982
mov esi, dword [esp + 0x34]
mov edi, ebx
mov ebx, dword [esp + 0x14]
test ebx, 0x100
je 0x581a71
mov eax, dword [esp + 0x10]
test byte [eax + 0x50], 0x10
je 0x581d1d
and ebx, 0xfeff
mov eax, 0xfeff
and word [ebp + 0x28], ax
mov dword [esp + 0x14], ebx
mov ebx, dword [esp + 0x98]
cmp dword [esp + 0x18], 1
mov eax, dword [esp + 0x14]
movzx ecx, ax
mov dword [esp + 0x3c], ecx
jne 0x581a9b
lea eax, [esp + 0x50]
push eax
call fcn.0059cda0
add esp, 4
test eax, eax
jne 0x581aff
lea eax, [esp + 0x50]
push eax
call fcn.00597fd0
add esp, 4
test eax, eax
jne 0x58255b
push eax
push ebp
call fcn.0059bab0
mov eax, dword [esp + 0x18]
add esp, 8
cmp byte [eax + 0x57], 0
jne 0x58255b
cmp dword [ebp + 8], 0
je 0x581aef
mov ax, word [ebp + 0x34]
inc ax
movzx eax, ax
push eax
push ebp
call fcn.0059bab0
mov eax, dword [esp + 0x18]
add esp, 8
cmp byte [eax + 0x57], 0
jne 0x58255b
mov eax, 0x100
test word [ebp + 0x28], ax
je 0x581aff
add word [ebp + 0x34], 0xffe2
cmp dword [ebp + 8], 0
mov ecx, dword [esp + 0x10]
jne 0x581b23
mov eax, dword [ecx + 0x20]
and eax, 0x1000
or eax, 0
je 0x581b23
push ebp
call fcn.0059c940
mov ecx, dword [esp + 0x14]
add esp, 4
cmp dword [edi + 0x24], 0
jne 0x58255b
mov al, byte [ebp + 0x2c]
mov dword [esp + 0x2c], 0xffffffff
mov dword [esp + 0x30], 0xffffffff
cmp al, 2
jb 0x581b9a
test ebx, ebx
je 0x581b84
mov eax, dword [esp + 0x14]
xor edx, edx
and eax, 0x400
cmp dx, ax
jne 0x581b84
test dword [ecx + 0x50], 0x100
jne 0x581b84
push 0xffffffffffffffff
push 0xffffffffffffffff
push ebp
call fcn.0059abd0
mov dword [esp + 0x38], eax
add esp, 0xc
mov al, byte [ebp + 0x2c]
movzx ecx, al
mov dword [esp + 0x30], edx
mov dword [esp + 0x18], ecx
cmp al, 2
jb 0x581b9a
mov eax, dword [esp + 0x10]
test dword [eax + 0x50], 0x80000
jne 0x581b9a
push ebp
call fcn.00597990
add esp, 4
mov ecx, dword [ebp]
mov ax, word [ebp + 0x34]
add word [ecx + 0x9c], ax
xor ecx, ecx
test byte [esp + 0x14], 4
je 0x581c47
mov ebx, dword [ebp + 0x348]
mov eax, dword [esp + 0x3c]
and eax, 8
mov dword [esp + 0x3c], eax
mov edx, dword [ebx + 0x2c]
test edx, 0x1000
jne 0x581c08
mov dword [esp + 0x44], ecx
cmp cx, ax
je 0x581c47
mov eax, dword [esp + 0x8c]
mov eax, dword [eax + 0x18]
cmp byte [eax + 0x2b], 1
je 0x581c47
test edx, 0x2000
je 0x581bf9
test byte [esp + 0x14], 0x10
je 0x581c47
mov eax, dword [esp + 0x10]
xor ecx, ecx
test dword [eax + 0x50], 0x8000000
jne 0x581c47
mov eax, edx
and eax, 0x1000
neg eax
sbb al, al
xor ecx, ecx
add al, 2
mov byte [ebp + 0x2e], al
mov eax, dword [esp + 0x8c]
mov eax, dword [eax + 0x18]
test byte [eax + 0x1c], 0x80
jne 0x581c47
test dl, 0x40
je 0x581c47
and edx, 0xffffffbf
mov eax, 8
mov dword [ebx + 0x2c], edx
xor edx, edx
cmp word [esp + 0x3c], cx
cmove eax, edx
movzx ecx, ax
cmp dword [esp + 0x18], 0
lea edx, [ebp + 0x2f8]
movzx eax, cx
mov ebx, edx
mov dword [esp + 0x48], eax
mov dword [esp + 0x44], 0
mov dword [esp + 0x24], edx
jle 0x582329
nop dword [eax]
movzx eax, byte [ebx + 0x3c]
mov ebp, 0xffff8000
mov ecx, dword [esp + 0x8c]
lea edx, [eax*8 + 1]
add edx, eax
mov ebx, dword [ecx + edx*8 + 0x10]
lea edx, [ecx + edx*8]
mov dword [esp + 0x20], edx
mov dword [esp + 0x38], ebx
mov ecx, dword [ebx + 0x3c]
test ecx, ecx
je 0x581cb8
mov eax, dword [esp + 0x10]
xor ebp, ebp
mov eax, dword [eax + 0x10]
add eax, 0xc
cmp dword [eax], ecx
je 0x581cb8
nop
lea eax, [eax + 0x10]
inc ebp
cmp dword [eax], ecx
jne 0x581cb0
test dword [ebx + 0x1c], 0x4000
mov eax, dword [esp + 0x24]
mov ecx, dword [eax + 0x50]
mov dword [esp + 0x3c], ecx
jne 0x581e7d
mov al, byte [ebx + 0x2b]
cmp al, 2
je 0x581e7d
mov ecx, dword [ecx + 0x2c]
test ecx, 0x400
je 0x581d65
mov eax, dword [ebx + 0x34]
test eax, eax
je 0x581d00
mov ecx, dword [esp + 0x10]
cmp dword [eax], ecx
je 0x581d00
mov eax, dword [eax + 0x18]
test eax, eax
jne 0x581cf5
push 0xfffffffffffffff5
push eax
push 0
push 0
push dword [edx + 0x2c]
push 0xad
push esi
call fcn.005704c0
add esp, 0x1c
jmp 0x581e79
mov ebx, dword [esp + 0x98]
lea eax, [ebp + 0x50]
push ebx
push eax
push dword [esp + 0x94]
push edi
call fcn.005113a0
add esp, 0x10
test eax, eax
je 0x581d46
mov byte [ebp + 0x2f], 1
jmp 0x581a78
cmp dword [esp + 0x94], 0
jne 0x581a78
mov eax, pe_nt_image_headers32
mov dword [ebp + 8], ebx
or word [ebp + 0x28], ax
jmp 0x581a78
cmp al, 1
je 0x581e7d
test cl, 0x40
jne 0x581d79
test byte [esp + 0x14], 0x20
je 0x581d83
test byte [edx + 0x24], 0x50
je 0x581e50
mov ebx, dword [esp + 0x1c]
mov ecx, 0x70
cmp byte [ebx + 0x2e], 0
je 0x581d9d
mov eax, dword [edx + 0x2c]
mov ecx, 0x71
mov dword [ebx + 0x14], eax
push ecx
push dword [esp + 0x3c]
push ebp
push dword [edx + 0x2c]
push edi
call fcn.005587a0
add esp, 0x14
cmp byte [ebx + 0x2e], 0
jne 0x581e38
mov ebx, dword [esp + 0x38]
cmp word [ebx + 0x22], 0x40
jge 0x581e38
test byte [ebx + 0x1c], 0xe0
jne 0x581e38
mov eax, dword [esp + 0x3c]
test dword [eax + 0x2c], 0x404000
jne 0x581e38
mov eax, dword [esp + 0x20]
xor edi, edi
mov edx, dword [eax + 0x38]
mov ecx, dword [eax + 0x3c]
mov eax, edx
or eax, ecx
je 0x581dfe
shrd edx, ecx, 1
inc edi
shr ecx, 1
mov eax, edx
or eax, ecx
jne 0x581df1
mov eax, dword [esi]
cmp byte [eax + 0x57], 0
jne 0x581e31
mov eax, dword [esi + 0x6c]
lea ecx, [eax + eax*4]
mov eax, dword [esi + 0x68]
lea eax, [eax + ecx*4]
add eax, 0xffffffec
cmp byte [eax + 1], 0
je 0x581e2a
push 0xfffffffffffffffd
push edi
push eax
push esi
call fcn.0058edd0
add esp, 0x10
jmp 0x581e31
mov dword [eax + 0x10], edi
mov byte [eax + 1], 0xfd
mov edi, dword [esp + 0x88]
mov eax, dword [esi + 0x6c]
test eax, eax
jle 0x581e79
mov edx, dword [esp + 0x48]
lea ecx, [eax + eax*4]
mov eax, dword [esi + 0x68]
mov word [eax + ecx*4 - 0x12], dx
jmp 0x581e79
cmp ebp, 1
je 0x581e7d
mov eax, dword [edi]
mov ecx, ebp
add ecx, ecx
mov eax, dword [eax + 0x10]
mov eax, dword [eax + ecx*8 + 4]
cmp byte [eax + 9], 0
je 0x581e7d
push dword [ebx]
push 0
push dword [ebx + 0x14]
push ebp
push edi
call fcn.00518d50
add esp, 0x14
mov edx, dword [esp + 0x20]
mov ebx, dword [esp + 0x3c]
test dword [ebx + 0x2c], 0x200
je 0x58205e
mov eax, dword [esp + 0x38]
mov ebx, dword [ebx + 0x20]
mov dword [esp + 0x4c], ebx
mov dword [esp + 0x34], 0x70
test byte [eax + 0x1c], 0x80
je 0x581ec7
mov eax, dword [ebx + 0x38]
and al, 3
cmp al, 2
mov eax, dword [esp + 0x14]
jne 0x581ecb
test al, 0x20
je 0x581ecb
mov ecx, dword [esp + 0x24]
mov eax, dword [ecx + 4]
mov dword [ecx + 8], eax
jmp 0x58205e
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x1c]
cmp byte [ecx + 0x2e], 0
je 0x581eff
mov eax, dword [edx + 0x10]
mov edi, dword [esp + 0x40]
mov eax, dword [eax + 8]
test eax, eax
je 0x581eef
cmp eax, ebx
je 0x581eef
mov eax, dword [eax + 0x14]
inc edi
test eax, eax
jne 0x581ee3
mov dword [esp + 0x34], 0x71
mov dword [ecx + 0x18], edi
jmp 0x581f75
mov ecx, dword [esp + 0x40]
test ecx, ecx
je 0x581f1c
test al, 0x20
je 0x581f1c
mov edi, ecx
mov dword [esp + 0x34], 0x65
mov eax, ecx
jmp 0x581f77
mov edi, dword [edi + 0x28]
mov ecx, dword [esp + 0x88]
lea eax, [edi + 1]
mov dword [ecx + 0x28], eax
test dword [ebx + 0x38], 0x1000
je 0x581f55
mov eax, dword [esp + 0x10]
test dword [eax + 0x50], 0x1000000
jne 0x581f55
push edx
push edi
push ebx
push ecx
call fcn.005972b0
mov ecx, dword [esp + 0x98]
add esp, 0x10
mov eax, dword [ebx + 0x24]
test eax, eax
je 0x581f75
mov edx, dword [esp + 0x20]
test byte [edx + 0x24], 0x10
jne 0x581f75
push edx
push edi
push 0
push eax
push ebx
push ecx
call fcn.0059af60
add esp, 0x18
mov eax, edi
mov ecx, dword [esp + 0x24]
mov dword [ecx + 8], eax
mov ecx, dword [esi + 0x6c]
mov edx, dword [ebx + 0x2c]
cmp dword [esi + 0x70], ecx
jg 0x581f9b
push ebp
push edx
push edi
push dword [esp + 0x40]
push esi
call fcn.0050f290
add esp, 0x14
jmp 0x581fcd
mov ebx, dword [esp + 0x34]
lea eax, [ecx + 1]
mov dword [esi + 0x6c], eax
lea ecx, [ecx + ecx*4]
mov eax, dword [esi + 0x68]
mov byte [eax + ecx*4], bl
xor ebx, ebx
mov word [eax + ecx*4 + 2], bx
mov dword [eax + ecx*4 + 0x10], ebx
mov byte [eax + ecx*4 + 1], bl
mov ebx, dword [esp + 0x4c]
mov dword [eax + ecx*4 + 4], edi
mov dword [eax + ecx*4 + 8], edx
mov dword [eax + ecx*4 + 0xc], ebp
mov edi, dword [esp + 0x88]
push ebx
push edi
mov eax, dword [edi + 8]
mov dword [esp + 0x54], eax
call fcn.00556090
mov edx, eax
add esp, 8
test edx, edx
je 0x582025
mov ebx, dword [esp + 0x4c]
mov eax, dword [ebx]
cmp byte [eax + 0x57], 0
je 0x582013
cmp dword [eax + 0x210], 0
jne 0x582025
add dword [edx], 0xffffffff
jne 0x582025
push edx
push dword [edx + 0xc]
call fcn.0053c330
add esp, 8
jmp 0x582025
mov eax, dword [ebx + 0x6c]
lea ecx, [eax + eax*4]
mov eax, dword [ebx + 0x68]
mov byte [eax + ecx*4 - 0x13], 0xf8
mov dword [eax + ecx*4 - 4], edx
mov eax, dword [esp + 0x3c]
mov eax, dword [eax + 0x2c]
test al, 0xf
je 0x58205e
test eax, 0x188002
jne 0x58205e
mov eax, dword [esp + 0x1c]
test byte [eax + 0x28], 1
jne 0x58205e
cmp byte [eax + 0x2f], 2
je 0x58205e
mov eax, dword [esi + 0x6c]
test eax, eax
jle 0x58205e
lea ecx, [eax + eax*4]
mov edx, 2
mov eax, dword [esi + 0x68]
mov word [eax + ecx*4 - 0x12], dx
test ebp, ebp
js 0x582093
mov eax, dword [edi + 0x80]
mov edx, edi
test eax, eax
mov ecx, ebp
cmovne edx, eax
mov eax, 1
shl eax, cl
mov ebx, dword [edx + 0x5c]
test ebx, eax
jne 0x582093
bts ebx, ebp
mov dword [edx + 0x5c], ebx
cmp ebp, 1
jne 0x582093
push edx
call fcn.00558af0
add esp, 4
mov eax, dword [esp + 0x20]
mov ebp, dword [esp + 0x1c]
test byte [eax + 0x24], 0x10
je 0x582305
mov eax, dword [ebp]
push 0
push 0x24
push dword [eax]
call fcn.0053c1d0
mov ebx, eax
add esp, 0xc
test ebx, ebx
je 0x5820d5
mov ecx, dword [ebp + 0x44]
mov dword [ebx], ecx
mov dword [ebx + 8], 0x14
mov dword [ebx + 0xc], 0
mov dword [ebp + 0x44], ebx
add ebx, 0x10
mov eax, dword [esp + 0x24]
mov dword [eax + 0x38], ebx
test ebx, ebx
je 0x582305
mov eax, dword [edi + 0x28]
mov dword [ebx], eax
mov edx, dword [edi + 0x2c]
inc dword [edi + 0x28]
inc edx
mov dword [edi + 0x2c], edx
mov dword [ebx + 4], edx
mov ecx, dword [esi + 0x6c]
cmp dword [esi + 0x70], ecx
jg 0x582113
push 0
push edx
push 0x10000
push 0x4d
push esi
call fcn.0050f290
add esp, 0x14
jmp 0x582146
mov ebp, dword [esp + 0x1c]
lea eax, [ecx + 1]
mov dword [esi + 0x6c], eax
lea ecx, [ecx + ecx*4]
mov eax, dword [esi + 0x68]
mov dword [eax + ecx*4], 0x4d
mov dword [eax + ecx*4 + 4], 0x10000
mov dword [eax + ecx*4 + 8], edx
mov dword [eax + ecx*4 + 0xc], 0
mov dword [eax + ecx*4 + 0x10], 0
inc dword [edi + 0x2c]
mov edx, dword [edi + 0x2c]
mov dword [ebx + 8], edx
mov ecx, dword [esi + 0x6c]
cmp dword [esi + 0x70], ecx
jg 0x582169
push 0
push edx
push 0
push 0x4b
push esi
call fcn.0050f290
add esp, 0x14
jmp 0x58219c
mov ebp, dword [esp + 0x1c]
lea eax, [ecx + 1]
mov dword [esi + 0x6c], eax
lea ecx, [ecx + ecx*4]
mov eax, dword [esi + 0x68]
mov dword [eax + ecx*4], 0x4b
mov dword [eax + ecx*4 + 4], 0
mov dword [eax + ecx*4 + 8], edx
mov dword [eax + ecx*4 + 0xc], 0
mov dword [eax + ecx*4 + 0x10], 0
mov eax, dword [esp + 0x38]
test byte [eax + 0x1c], 0x80
jne 0x582234
mov ecx, dword [esi + 0x6c]
mov edx, dword [ebx]
cmp dword [esi + 0x70], ecx
jg 0x5821c6
push 0
push 1
push edx
push 0x76
push esi
call fcn.0050f290
add esp, 0x14
jmp 0x5821f5
lea eax, [ecx + 1]
mov dword [esi + 0x6c], eax
lea ecx, [ecx + ecx*4]
mov eax, dword [esi + 0x68]
mov dword [eax + ecx*4], 0x76
mov dword [eax + ecx*4 + 4], edx
mov dword [eax + ecx*4 + 8], 1
mov dword [eax + ecx*4 + 0xc], 0
mov dword [eax + ecx*4 + 0x10], 0
push 0
push 1
push dword [edi]
call fcn.00555f80
mov edx, eax
add esp, 0xc
test edx, edx
je 0x5822f5
mov ecx, dword [edx + 0x10]
mov dword [edx + 0x14], 0
mov byte [ecx], 0
mov eax, dword [esi]
cmp byte [eax + 0x57], 0
jne 0x5822c7
mov eax, dword [esi + 0x6c]
lea ecx, [eax + eax*4]
mov eax, dword [esi + 0x68]
jmp 0x5822ec
mov edi, dword [eax + 8]
test edi, edi
je 0x582250
nop dword [eax + eax]
mov eax, dword [edi + 0x38]
and al, 3
cmp al, 2
je 0x582250
mov edi, dword [edi + 0x14]
test edi, edi
jne 0x582240
mov ecx, dword [esi + 0x6c]
movzx edx, word [edi + 0x32]
mov ebx, dword [ebx]
cmp dword [esi + 0x70], ecx
jg 0x58226f
push 0
push edx
push ebx
push 0x76
push esi
call fcn.0050f290
add esp, 0x14
jmp 0x58229e
mov ebp, dword [esp + 0x1c]
lea eax, [ecx + 1]
mov dword [esi + 0x6c], eax
lea ecx, [ecx + ecx*4]
mov eax, dword [esi + 0x68]
mov dword [eax + ecx*4], 0x76
mov dword [eax + ecx*4 + 4], ebx
mov dword [eax + ecx*4 + 8], edx
mov dword [eax + ecx*4 + 0xc], 0
mov dword [eax + ecx*4 + 0x10], 0
mov ebx, dword [esp + 0x88]
push edi
mov edi, dword [esp + 0x8c]
push edi
mov ebx, dword [ebx + 8]
call fcn.00556090
mov edx, eax
add esp, 8
test edx, edx
je 0x5822f5
mov eax, dword [ebx]
cmp byte [eax + 0x57], 0
je 0x5822e3
cmp dword [eax + 0x210], 0
jne 0x5822f5
add dword [edx], 0xffffffff
jne 0x5822f5
push edx
push dword [edx + 0xc]
call fcn.0053c330
add esp, 8
jmp 0x5822f5
mov eax, dword [ebx + 0x6c]
lea ecx, [eax + eax*4]
mov eax, dword [ebx + 0x68]
mov dword [eax + ecx*4 - 4], edx
mov byte [eax + ecx*4 - 0x13], 0xf8
mov eax, dword [esp + 0x3c]
and dword [eax + 0x2c], 0xffffffbf
mov byte [ebp + 0x2d], 0
mov byte [ebp + 0x2f], 3
mov eax, dword [esp + 0x44]
mov ebx, dword [esp + 0x24]
inc eax
add ebx, 0x60
mov dword [esp + 0x44], eax
mov dword [esp + 0x24], ebx
cmp eax, dword [esp + 0x18]
jl 0x581c70
lea edx, [ebp + 0x2f8]
mov eax, dword [esi + 0x6c]
mov dword [ebp + 0x38], eax
mov eax, dword [esp + 0x10]
cmp byte [eax + 0x57], 0
jne 0x58255b
xor ecx, ecx
mov dword [esp + 0x24], ecx
cmp dword [esp + 0x18], ecx
jle 0x58254b
nop dword [eax]
cmp dword [edi + 0x24], 0
jne 0x58255b
mov eax, dword [edx + 0x50]
mov ebx, dword [esp + 0x8c]
mov eax, dword [eax + 0x2c]
mov dword [esp + 0x4c], eax
movzx eax, byte [edx + 0x3c]
lea eax, [eax + eax*8]
lea ebx, [ebx + eax*8]
mov eax, dword [ebx + 0x30]
test al, 0x10
je 0x5824a5
test al, 8
je 0x5823da
mov ecx, dword [esi + 0x6c]
mov edx, dword [ebx + 0x20]
mov ebx, dword [ebx + 0x24]
cmp dword [esi + 0x70], ecx
jg 0x5823a6
push 0
push edx
push ebx
push 0xa
push esi
call fcn.0050f290
add esp, 0x14
jmp 0x58249d
mov ebp, dword [esp + 0x1c]
lea eax, [ecx + 1]
mov dword [esi + 0x6c], eax
lea ecx, [ecx + ecx*4]
mov eax, dword [esi + 0x68]
mov dword [eax + ecx*4], 0xa
mov dword [eax + ecx*4 + 4], ebx
mov dword [eax + ecx*4 + 8], edx
mov dword [eax + ecx*4 + 0xc], 0
mov dword [eax + ecx*4 + 0x10], 0
jmp 0x58249d
mov edi, dword [esi + 0x6c]
cmp dword [esi + 0x70], edi
jg 0x5823f7
push 0
push 0
push 0
push 0xf
push esi
call fcn.0050f290
add esp, 0x14
mov edi, eax
jmp 0x58242a
lea eax, [edi + 1]
mov dword [esi + 0x6c], eax
lea ecx, [edi + edi*4]
mov eax, dword [esi + 0x68]
mov dword [eax + ecx*4], 0xf
mov dword [eax + ecx*4 + 4], 0
mov dword [eax + ecx*4 + 8], 0
mov dword [eax + ecx*4 + 0xc], 0
mov dword [eax + ecx*4 + 0x10], 0
mov ecx, dword [esi + 0x6c]
mov edx, dword [ebx + 0x20]
mov ebx, dword [ebx + 0x24]
cmp dword [esi + 0x70], ecx
jg 0x582449
push 0
push edx
push ebx
push 0xa
push esi
call fcn.0050f290
add esp, 0x14
jmp 0x582478
mov ebp, dword [esp + 0x1c]
lea eax, [ecx + 1]
mov dword [esi + 0x6c], eax
lea ecx, [ecx + ecx*4]
mov eax, dword [esi + 0x68]
mov dword [eax + ecx*4], 0xa
mov dword [eax + ecx*4 + 4], ebx
mov dword [eax + ecx*4 + 8], edx
mov dword [eax + ecx*4 + 0xc], 0
mov dword [eax + ecx*4 + 0x10], 0
mov eax, dword [esi]
mov edx, dword [esi + 0x6c]
cmp byte [eax + 0x57], 0
je 0x58248a
mov eax, 0x63d108
jmp 0x582493
mov eax, dword [esi + 0x68]
lea ecx, [edi + edi*4]
lea eax, [eax + ecx*4]
mov edi, dword [esp + 0x88]
mov dword [eax + 8], edx
mov ecx, dword [esp + 0x24]
mov edx, dword [esp + 0x28]
mov eax, dword [esp + 0x4c]
test eax, 0x404000
je 0x5824ed
test eax, 0x4000
je 0x5824cc
push edx
push dword [esp + 0x34]
lea eax, [ebp + 0x50]
push dword [esp + 0x34]
push eax
push edi
call fcn.004e5110
jmp 0x5824dc
push dword [esp + 0x30]
push dword [esp + 0x30]
push edx
push ecx
push ebp
call fcn.00539fc0
mov eax, dword [esp + 0x24]
add esp, 0x14
cmp byte [eax + 0x57], 0
jne 0x58255b
push dword [esp + 0x14]
mov ebx, dword [esp + 0x2c]
push ebx
push dword [esp + 0x94]
push edi
call fcn.00585bc0
push dword [esp + 0x40]
mov eax, dword [esi + 0x6c]
push dword [esp + 0x40]
mov dword [ebx + 0x20], eax
push ebx
push dword [esp + 0x40]
push ebp
push esi
push edi
call fcn.00582640
mov ecx, dword [esp + 0x50]
add esp, 0x2c
mov dword [esp + 0x30], edx
inc ecx
mov edx, ebx
mov dword [esp + 0x2c], eax
mov dword [esp + 0x24], ecx
mov eax, dword [edx + 0x18]
add edx, 0x60
mov dword [ebp + 0x1c], eax
mov dword [esp + 0x28], edx
cmp ecx, dword [esp + 0x18]
jl 0x582350
mov eax, dword [esi + 0x6c]
mov dword [ebp + 0x3c], eax
mov eax, ebp
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x74
ret
mov ax, word [ebp + 0x24]
push ebp
push dword [esp + 0x14]
mov word [edi + 0x9c], ax
call fcn.00597d90
add esp, 8
pop ebp
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 0x74
ret