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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff0
sub esp, 0xb8
mov eax, dword [0x577018]
xor eax, esp
mov dword [esp + 0xb4], eax
mov eax, dword [ebp + 0x14]
xorps xmm0, xmm0
mov dword [esp + 0x18], edx
mov edx, ecx
mov ecx, dword [ebp + 8]
mov dword [esp + 8], ecx
mov ecx, dword [ebp + 0x10]
mov dword [esp + 0x20], ecx
mov ecx, dword [edx + 8]
push esi
mov esi, dword [ebp + 0xc]
mov dword [esp + 0x20], ecx
mov ecx, dword [edx]
mov dword [esp + 0x10], edx
mov dword [esp + 0x3c], esi
mov dword [esp + 0x2c], ecx
mov dword [esp + 0x74], 0
movlpd qword [esp + 0x80], xmm0
mov dword [esp + 0x88], 0
push edi
movzx edi, ax
test esi, esi
je 0x4a782d
xor edx, edx
cmp dword [esi], 0x40
cmovge esi, edx
mov dword [esp + 0x40], esi
mov dl, byte [ecx + 0x4c]
and eax, 0xfeff
movzx ecx, ax
test dl, 0x10
mov eax, edi
mov dword [esp + 0x7c], esi
cmove ecx, eax
movzx eax, cx
mov ecx, eax
mov dword [esp + 0x44], ecx
mov ecx, dword [esp + 0x20]
mov ecx, dword [ecx]
cmp ecx, 0x40
jle 0x4a7882
mov ecx, dword [esp + 0x14]
push 0x40
push str.at_most__d_tables_in_a_join
push ecx
call fcn.00427d40
add esp, 0xc
xor eax, eax
pop edi
pop esi
mov ecx, dword [esp + 0xb4]
xor ecx, esp
call fcn.00517154
mov esp, ebp
pop ebp
ret
and eax, 0x20
mov edx, eax
mov dword [esp + 0x58], eax
mov eax, 1
mov dword [esp + 0x70], edx
cmovne ecx, eax
mov dword [esp + 0x38], ecx
push 0
lea eax, [ecx + ecx*4]
mov ecx, dword [esp + 0x34]
shl eax, 4
mov dword [esp + 0x50], eax
add eax, 0x2f7
and eax, 0xfffffff8
mov dword [esp + 0x20], eax
add eax, 0x48
push eax
call fcn.00423950
mov edi, eax
add esp, 8
mov eax, dword [esp + 0x30]
mov dword [esp + 0x2c], edi
cmp byte [eax + 0x51], 0
je 0x4a78f2
mov edx, edi
mov ecx, eax
call fcn.00423630
xor eax, eax
pop edi
pop esi
mov ecx, dword [esp + 0xb4]
xor ecx, esp
call fcn.00517154
mov esp, ebp
pop ebp
ret
mov ecx, dword [esp + 0x14]
xorps xmm0, xmm0
mov eax, dword [esp + 0x20]
mov dword [edi + 4], eax
mov eax, dword [esp + 0x10]
mov dword [edi + 0x10], eax
mov eax, dword [esp + 0x28]
mov dword [edi + 0xc], eax
mov eax, dword [esp + 0x38]
mov dword [edi], ecx
mov dword [edi + 8], esi
mov dword [edi + 0x1c], 0xffffffff
mov dword [edi + 0x18], 0xffffffff
mov byte [edi + 0x2e], al
mov eax, dword [ecx + 0x38]
dec eax
mov dword [ecx + 0x38], eax
mov dword [edi + 0x20], eax
mov dword [edi + 0x24], eax
mov eax, dword [esp + 0x44]
mov word [edi + 0x2c], ax
mov eax, dword [ebp + 0x18]
mov word [edi + 0x14], ax
mov dword [esp + 0x54], eax
mov eax, dword [ecx + 0x80]
lea ecx, [edi + 0x2f0]
mov dword [edi + 0x28], eax
mov eax, dword [esp + 0x4c]
add eax, 0x48
mov dword [esp + 0x50], ecx
push eax
movups xmmword [edi + 0x2f], xmm0
push 0
movups xmmword [edi + 0x3f], xmm0
push ecx
mov byte [edi + 0x4f], 0
call fcn.00519680
mov ecx, dword [esp + 0x28]
lea eax, [edi + 0x50]
add ecx, edi
mov dword [esp + 0x58], eax
mov dword [esp + 0x84], eax
lea edx, [edi + 0x1e8]
add esp, 0xc
mov dword [esp + 0x80], ecx
mov dword [esp + 0x3c], edx
lea eax, [ecx + 0x38]
mov dword [ecx + 0x24], 0
mov dword [ecx + 0x30], eax
xor eax, eax
mov word [ecx + 0x28], ax
mov eax, 3
mov word [ecx + 0x2c], ax
lea ecx, [edi + 0x50]
mov dword [edx + 4], 0
lea eax, [ecx + 0x18]
mov edx, dword [esp + 0x10]
push 0x2c
mov dword [esp + 0x78], edi
mov dword [ecx], edi
mov byte [ecx + 9], 0
mov dword [ecx + 4], 0
mov dword [ecx + 0xc], 0
mov dword [ecx + 0x10], 8
mov dword [ecx + 0x14], eax
call fcn.004a11f0
add esp, 4
cmp dword [esp + 0x38], 0
jne 0x4a7a2f
test esi, esi
je 0x4a7a08
mov al, byte [esi]
mov byte [edi + 0x2f], al
test dword [esp + 0x44], 0x100
je 0x4a7a16
mov byte [edi + 0x33], 1
push str.SCAN_CONSTANT_ROW
push 0
push dword [esp + 0x1c]
call fcn.004468a0
mov eax, dword [esp + 0x2c]
add esp, 0xc
jmp 0x4a7a73
mov esi, dword [esp + 0x20]
xor edi, edi
add esi, 8
nop dword [eax + eax]
mov edx, dword [esp + 0x3c]
mov eax, dword [esi + 0x2c]
push dword [esp + 0x4c]
mov ecx, dword [edx + 4]
mov dword [edx + ecx*4 + 8], eax
inc dword [edx + 4]
mov edx, esi
mov ecx, dword [esp + 0x18]
call fcn.004a15b0
mov eax, dword [esp + 0x24]
inc edi
add esp, 4
add esi, 0x48
cmp edi, dword [eax]
jl 0x4a7a40
mov edi, dword [esp + 0x2c]
mov esi, dword [edi + 0x5c]
sub esi, 1
js 0x4a7a9a
mov edi, dword [esp + 0x4c]
nop
push esi
mov edx, edi
mov ecx, eax
call fcn.004a00f0
mov eax, dword [esp + 0x24]
add esp, 4
sub esi, 1
jns 0x4a7a80
mov edi, dword [esp + 0x2c]
mov eax, dword [esp + 0x30]
cmp byte [eax + 0x51], 0
jne 0x4a839d
cmp dword [edi + 0x5c], 0
lea esi, [edi + 0x50]
mov dword [esp + 0x10], 0
jle 0x4a7b74
xor ecx, ecx
mov dword [esp + 0x1c], ecx
jmp 0x4a7ac8
lea esi, [edi + 0x50]
mov esi, dword [esi + 0x14]
add esi, ecx
test byte [esi + 0xa], 2
jne 0x4a7b56
mov eax, dword [esi + 0x28]
or eax, dword [esi + 0x2c]
jne 0x4a7b56
cmp dword [esp + 0x38], eax
je 0x4a7b3a
mov edx, dword [esi]
xorps xmm0, xmm0
movaps xmmword [esp + 0x90], xmm0
movq qword [esp + 0xa0], xmm0
mov dword [esp + 0xa8], eax
mov byte [esp + 0xa4], 1
mov dword [esp + 0x94], 0x4a7780
mov dword [esp + 0x98], 0x45efe0
test edx, edx
je 0x4a7b3a
lea ecx, [esp + 0x90]
call fcn.00459a40
cmp byte [esp + 0xa4], 0
je 0x4a7b52
push 0x10
push dword [edi + 0x24]
push dword [esi]
push dword [esp + 0x20]
call fcn.00463de0
add esp, 0x10
or word [esi + 0xa], 4
mov ecx, dword [esp + 0x1c]
mov esi, dword [esp + 0x10]
lea edx, [edi + 0x50]
inc esi
add ecx, 0x30
mov dword [esp + 0x10], esi
mov dword [esp + 0x1c], ecx
cmp esi, dword [edx + 0xc]
jl 0x4a7ac5
jmp 0x4a7b77
lea edx, [edi + 0x50]
mov eax, dword [esp + 0x44]
mov esi, dword [esp + 0x28]
and eax, 0x100
mov dword [esp + 0x5c], eax
je 0x4a7bb9
mov ecx, dword [esp + 0x14]
push esi
push edx
mov edx, dword [esp + 0x28]
call fcn.004a1d80
add esp, 8
test eax, eax
je 0x4a7ba6
mov byte [edi + 0x33], 1
jmp 0x4a7bb9
cmp dword [esp + 0x40], 0
jne 0x4a7bb9
mov eax, 0x80
mov dword [edi + 8], esi
or word [edi + 0x2c], ax
cmp dword [esp + 0x38], 1
jne 0x4a7bcd
lea ecx, [esp + 0x74]
call fcn.004a75c0
test eax, eax
jne 0x4a7c18
lea ecx, [esp + 0x74]
call fcn.004a5fc0
test eax, eax
jne 0x4a839d
xor edx, edx
mov ecx, edi
call fcn.004a6ba0
mov ecx, dword [esp + 0x30]
cmp byte [ecx + 0x51], 0
jne 0x4a839d
cmp dword [edi + 8], 0
je 0x4a7c22
movzx edx, word [edi + 0x48]
mov ecx, edi
inc dx
call fcn.004a6ba0
mov ecx, dword [esp + 0x30]
cmp byte [ecx + 0x51], 0
jne 0x4a839d
jmp 0x4a7c1c
mov ecx, dword [esp + 0x30]
cmp dword [edi + 8], 0
jne 0x4a7c3d
mov eax, dword [ecx + 0x20]
and eax, 0x1000
or eax, 0
je 0x4a7c3d
mov dword [edi + 0x40], 0xffffffff
mov dword [edi + 0x44], 0xffffffff
mov eax, dword [esp + 0x14]
cmp dword [eax + 0x24], 0
jne 0x4a839d
cmp byte [ecx + 0x51], 0
jne 0x4a839d
cmp byte [edi + 0x2e], 2
mov dword [esp + 0x48], 0xffffffff
mov dword [esp + 0x3c], 0xffffffff
jb 0x4a7dda
test esi, esi
je 0x4a7dda
mov eax, 0x100
test word [ecx + 0x4c], ax
jne 0x4a7dda
mov edx, esi
lea ecx, [edi + 0x1e8]
call fcn.004a1520
mov dword [esp + 0x18], edx
mov edx, dword [esp + 0x7c]
mov dword [esp + 0x28], eax
test edx, edx
je 0x4a7cb6
lea ecx, [edi + 0x1e8]
call fcn.004a1520
or dword [esp + 0x28], eax
or dword [esp + 0x18], edx
movzx esi, byte [edi + 0x2e]
dec esi
mov dword [esp + 0x40], esi
cmp esi, 1
jl 0x4a7dda
lea eax, [esi + esi*4]
shl eax, 4
add eax, 0x2f0
add eax, edi
mov dword [esp + 0x10], eax
nop dword [eax]
mov edx, dword [eax + 0x40]
mov ecx, dword [esp + 0x48]
mov dword [esp + 0x64], ecx
mov ecx, dword [esp + 0x3c]
movzx eax, byte [edx + 0x10]
mov dword [esp + 0x68], ecx
mov dword [esp + 0x6c], edx
lea ecx, [eax + eax*8]
mov eax, dword [edi + 4]
test byte [eax + ecx*8 + 0x2c], 8
lea eax, [eax + ecx*8]
mov dword [esp + 0x60], eax
je 0x4a7dc1
cmp word [esp + 0x5c], 0
jne 0x4a7d28
test dword [edx + 0x24], 0x1000
je 0x4a7dc1
mov edi, dword [edx + 8]
mov ecx, edi
mov eax, dword [edx + 0xc]
and ecx, dword [esp + 0x28]
mov dword [esp + 0x34], eax
and eax, dword [esp + 0x18]
or ecx, eax
jne 0x4a7dbd
mov eax, dword [esp + 0x78]
mov edx, dword [eax + 0x14]
mov esi, edx
mov eax, dword [eax + 0xc]
lea eax, [eax + eax*2]
shl eax, 4
add eax, edx
mov dword [esp + 0x1c], eax
cmp esi, eax
jae 0x4a7f3b
mov eax, dword [esi + 0x2c]
mov ecx, edi
and ecx, dword [esi + 0x28]
and eax, dword [esp + 0x34]
or ecx, eax
je 0x4a7d85
mov eax, dword [esi]
test byte [eax + 4], 1
je 0x4a7daf
mov ecx, dword [esp + 0x60]
movsx eax, word [eax + 0x24]
cmp eax, dword [ecx + 0x34]
jne 0x4a7daf
add esi, 0x30
cmp esi, dword [esp + 0x1c]
jb 0x4a7d60
mov esi, dword [esp + 0x34]
mov eax, edi
mov ecx, esi
not eax
and eax, dword [esp + 0x64]
not ecx
and ecx, dword [esp + 0x68]
mov dword [esp + 0x48], eax
mov dword [esp + 0x3c], ecx
jmp 0x4a7f55
cmp esi, dword [esp + 0x1c]
jae 0x4a7f3b
mov esi, dword [esp + 0x40]
mov edi, dword [esp + 0x2c]
mov eax, dword [esp + 0x10]
dec esi
sub eax, 0x50
mov dword [esp + 0x40], esi
mov dword [esp + 0x10], eax
cmp esi, 1
jge 0x4a7ce0
mov ecx, dword [edi]
movsx eax, word [edi + 0x48]
mov esi, dword [esp + 0x20]
mov dword [esp + 0x34], 0
add dword [ecx + 0x80], eax
mov eax, dword [esp + 0x44]
test al, 4
je 0x4a7e82
mov edx, dword [edi + 0x330]
mov ecx, dword [edx + 0x24]
test ecx, 0x1000
jne 0x4a7e43
mov dword [esp + 0x34], 0
test al, 8
je 0x4a7e82
mov eax, dword [esi + 0x18]
mov dword [esp + 0x34], 0
cmp dword [eax + 0x38], 0
jne 0x4a7e82
test ecx, 0x2000
je 0x4a7e43
test byte [esp + 0x44], 0x10
mov dword [esp + 0x34], 0
je 0x4a7e82
mov eax, ecx
mov dword [esp + 0x34], 0
and eax, 0x1000
neg eax
sbb al, al
add al, 2
mov byte [edi + 0x31], al
mov eax, dword [esi + 0x18]
test byte [eax + 0x24], 0x20
jne 0x4a7e82
mov dword [esp + 0x34], 0
test cl, 0x40
je 0x4a7e82
mov eax, dword [esp + 0x44]
and ecx, 0xffffffbf
and eax, 8
mov dword [edx + 0x24], ecx
mov dword [esp + 0x34], eax
mov ecx, dword [esp + 0x38]
test ecx, ecx
jle 0x4a82af
mov eax, dword [esp + 0x50]
add eax, 0x40
mov dword [esp + 0x40], ecx
mov dword [esp + 0x1c], eax
nop dword [eax]
movzx eax, byte [eax - 0x14]
mov edi, 0xfff0bdc0
lea eax, [eax + eax*8]
lea edx, [esi + eax*8]
mov esi, dword [edx + 0x18]
mov dword [esp + 0x18], edx
mov dword [esp + 0x10], esi
mov ecx, dword [esi + 0x48]
test ecx, ecx
je 0x4a7ed9
mov eax, dword [esp + 0x30]
xor edi, edi
mov eax, dword [eax + 0x10]
add eax, 0xc
cmp dword [eax], ecx
je 0x4a7ed9
lea eax, [eax + 0x10]
inc edi
cmp dword [eax], ecx
jne 0x4a7ed1
test byte [esi + 0x24], 2
mov eax, dword [esp + 0x1c]
mov ecx, dword [eax]
mov dword [esp + 0x28], ecx
jne 0x4a80ba
cmp dword [esi + 0xc], 0
jne 0x4a80ba
mov eax, dword [ecx + 0x24]
test eax, 0x400
je 0x4a7fb7
mov eax, dword [esi + 0x40]
test eax, eax
je 0x4a7f1b
mov ecx, dword [esp + 0x30]
cmp dword [eax], ecx
je 0x4a7f1b
mov eax, dword [eax + 0x18]
test eax, eax
jne 0x4a7f10
mov ecx, dword [esp + 0x24]
push 0xfffffffffffffff4
push eax
push 0
push 0
push dword [edx + 0x34]
mov edx, 0xa4
call fcn.00446820
add esp, 0x14
jmp 0x4a80b2
mov esi, dword [esp + 0x34]
mov ecx, edi
mov eax, esi
not ecx
and dword [esp + 0x48], ecx
not eax
and dword [esp + 0x3c], eax
cmp edx, dword [esp + 0x1c]
jae 0x4a7f7b
mov eax, dword [edx + 0x2c]
mov ecx, edi
and ecx, dword [edx + 0x28]
and eax, esi
or ecx, eax
je 0x4a7f72
mov eax, dword [esp + 0x6c]
or word [edx + 0xa], 4
mov edi, dword [eax + 8]
mov esi, dword [eax + 0xc]
add edx, 0x30
cmp edx, dword [esp + 0x1c]
jb 0x4a7f55
mov edi, dword [esp + 0x2c]
mov esi, dword [esp + 0x40]
movzx ecx, byte [edi + 0x2e]
lea eax, [ecx - 1]
cmp esi, eax
je 0x4a7fab
sub ecx, esi
lea eax, [ecx + ecx*4]
mov ecx, dword [esp + 0x10]
shl eax, 4
sub eax, 0x50
push eax
lea eax, [ecx + 0x50]
push eax
push ecx
call fcn.005190f0
add esp, 0xc
dec byte [edi + 0x2e]
dec dword [esp + 0x38]
jmp 0x4a7dc1
cmp dword [esi + 0x38], 0
jne 0x4a80ba
test al, 0x40
jne 0x4a809d
cmp word [esp + 0x70], 0
jne 0x4a809d
mov ecx, dword [esp + 0x2c]
mov edx, 0x6d
cmp byte [ecx + 0x31], 0
je 0x4a7ff3
mov eax, dword [esp + 0x18]
mov edx, 0x6e
mov eax, dword [eax + 0x34]
mov dword [ecx + 0x18], eax
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x14]
push edx
push esi
mov edx, dword [eax + 0x34]
push edi
call fcn.0047bf50
mov eax, dword [esp + 0x38]
add esp, 0xc
cmp byte [eax + 0x31], 0
jne 0x4a807d
cmp word [esi + 0x2a], 0x40
jge 0x4a807d
test byte [esi + 0x24], 0x20
jne 0x4a807d
mov eax, dword [esp + 0x18]
xor esi, esi
mov edx, dword [eax + 0x40]
mov ecx, edx
mov eax, dword [eax + 0x44]
or ecx, eax
je 0x4a803f
shrd edx, eax, 1
inc esi
shr eax, 1
mov ecx, edx
or ecx, eax
jne 0x4a8032
mov edx, dword [esp + 0x24]
mov eax, dword [edx]
cmp byte [eax + 0x51], 0
jne 0x4a8079
mov eax, dword [edx + 0x6c]
lea ecx, [eax + eax*4]
mov eax, dword [edx + 0x68]
cmp byte [eax + ecx*4 - 0x13], 0
lea eax, [eax + ecx*4]
je 0x4a8072
mov ecx, dword [esp + 0x24]
lea edx, [eax - 0x14]
push 0xfffffffffffffffd
push esi
call fcn.004472e0
add esp, 8
jmp 0x4a8079
mov dword [eax - 4], esi
mov byte [eax - 0x13], 0xfd
mov esi, dword [esp + 0x10]
mov eax, dword [esp + 0x24]
mov eax, dword [eax + 0x6c]
test eax, eax
jle 0x4a80b2
mov edx, dword [esp + 0x34]
lea ecx, [eax + eax*4]
mov eax, dword [esp + 0x24]
mov eax, dword [eax + 0x68]
mov word [eax + ecx*4 - 0x12], dx
jmp 0x4a80b2
push dword [esi]
mov ecx, dword [esp + 0x18]
mov edx, edi
push 0
push dword [esi + 0x1c]
call fcn.0046a6e0
add esp, 0xc
mov ecx, dword [esp + 0x28]
mov edx, dword [esp + 0x18]
test dword [ecx + 0x24], 0x200
je 0x4a8259
test byte [esi + 0x24], 0x20
mov ecx, dword [ecx + 0x20]
mov dword [esp + 0x10], ecx
mov dword [esp + 0x18], 0x6d
je 0x4a80fc
mov eax, dword [ecx + 0x38]
and al, 3
cmp al, 2
jne 0x4a80fc
cmp word [esp + 0x58], 0
je 0x4a80fc
mov ecx, dword [esp + 0x1c]
mov eax, dword [ecx - 0x3c]
mov dword [ecx - 0x38], eax
jmp 0x4a8259
mov esi, dword [esp + 0x2c]
cmp byte [esi + 0x31], 0
je 0x4a812e
mov eax, dword [edx + 0x18]
mov edx, dword [esp + 0x54]
mov eax, dword [eax + 8]
test eax, eax
je 0x4a8120
cmp eax, ecx
je 0x4a8120
mov eax, dword [eax + 0x14]
inc edx
test eax, eax
jne 0x4a8114
mov eax, 0x6e
mov dword [esi + 0x1c], edx
mov dword [esp + 0x18], eax
jmp 0x4a8158
mov eax, dword [esp + 0x54]
test eax, eax
je 0x4a814b
cmp word [esp + 0x58], 0
je 0x4a814b
mov edx, eax
mov eax, 0x6c
mov dword [esp + 0x18], eax
jmp 0x4a8158
mov esi, dword [esp + 0x14]
mov edx, dword [esi + 0x28]
lea eax, [edx + 1]
mov dword [esi + 0x28], eax
mov ecx, dword [esp + 0x1c]
mov esi, edx
mov eax, dword [esp + 0x24]
mov dword [ecx - 0x38], esi
mov ecx, dword [esp + 0x10]
mov esi, dword [ecx + 0x2c]
mov ecx, dword [esp + 0x24]
mov dword [esp + 0x50], esi
mov ecx, dword [ecx + 0x6c]
cmp dword [eax + 0x70], ecx
mov eax, dword [esp + 0x18]
jg 0x4a8193
mov ecx, dword [esp + 0x24]
push edi
push esi
push edx
mov edx, eax
call fcn.004463f0
add esp, 0xc
jmp 0x4a81ca
mov esi, dword [esp + 0x24]
lea eax, [ecx + 1]
lea ecx, [ecx + ecx*4]
mov dword [esi + 0x6c], eax
mov eax, esi
mov esi, dword [esp + 0x50]
mov eax, dword [eax + 0x68]
mov dword [eax + ecx*4 + 4], edx
mov dword [eax + ecx*4 + 8], esi
mov dword [eax + ecx*4 + 0xc], edi
lea eax, [eax + ecx*4]
mov ecx, dword [esp + 0x18]
mov byte [eax], cl
xor ecx, ecx
mov word [eax + 2], cx
mov dword [eax + 0x10], ecx
mov byte [eax + 1], cl
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x10]
mov eax, dword [ecx + 8]
mov dword [esp + 0x50], eax
call fcn.004728c0
mov esi, eax
test esi, esi
je 0x4a821c
mov edx, dword [esp + 0x50]
mov eax, dword [edx]
cmp byte [eax + 0x51], 0
je 0x4a820a
cmp dword [eax + 0x1e0], 0
jne 0x4a821c
add dword [esi], 0xffffffff
jne 0x4a821c
mov ecx, dword [esi + 0xc]
mov edx, esi
call fcn.00423590
jmp 0x4a821c
mov eax, dword [edx + 0x6c]
lea ecx, [eax + eax*4]
mov eax, dword [edx + 0x68]
mov byte [eax + ecx*4 - 0x13], 0xf7
mov dword [eax + ecx*4 - 4], esi
mov eax, dword [esp + 0x28]
mov eax, dword [eax + 0x24]
test al, 0xf
je 0x4a8259
test eax, 0x8002
jne 0x4a8259
mov eax, dword [esp + 0x2c]
test byte [eax + 0x2c], 1
jne 0x4a8259
cmp byte [eax + 0x33], 2
je 0x4a8259
mov edx, dword [esp + 0x24]
mov eax, dword [edx + 0x6c]
test eax, eax
jle 0x4a8259
lea ecx, [eax + eax*4]
mov eax, dword [edx + 0x68]
mov edx, 2
mov word [eax + ecx*4 - 0x12], dx
test edi, edi
js 0x4a828d
mov ecx, dword [esp + 0x14]
mov edx, ecx
mov eax, dword [ecx + 0x74]
test eax, eax
mov ecx, edi
cmovne edx, eax
mov eax, 1
shl eax, cl
mov esi, dword [edx + 0x54]
test esi, eax
jne 0x4a828d
bts esi, edi
mov dword [edx + 0x54], esi
cmp edi, 1
jne 0x4a828d
mov ecx, edx
call fcn.00471eb0
mov eax, dword [esp + 0x1c]
mov esi, dword [esp + 0x20]
add eax, 0x50
sub dword [esp + 0x40], 1
mov dword [esp + 0x1c], eax
jne 0x4a7ea0
mov edi, dword [esp + 0x2c]
mov ecx, dword [esp + 0x38]
mov eax, dword [esp + 0x24]
mov eax, dword [eax + 0x6c]
mov dword [edi + 0x38], eax
mov eax, dword [esp + 0x30]
cmp byte [eax + 0x51], 0
jne 0x4a839d
mov dword [esp + 0x10], 0
test ecx, ecx
jle 0x4a8383
lea esi, [edi + 0x31c]
nop dword [eax]
mov eax, dword [esi + 0x14]
lea edi, [esi - 0x2c]
test dword [eax + 0x24], 0x4000
je 0x4a8323
movzx eax, byte [esi]
mov ecx, dword [esp + 0x20]
mov edx, dword [esp + 0x4c]
push edi
push dword [esp + 0x40]
lea eax, [eax + eax*8]
push dword [esp + 0x50]
lea eax, [eax + 1]
lea eax, [ecx + eax*8]
mov ecx, dword [esp + 0x20]
push eax
call fcn.004a2120
mov eax, dword [esp + 0x40]
add esp, 0x10
cmp byte [eax + 0x51], 0
jne 0x4a8399
push dword [esp + 0x44]
mov edx, dword [esp + 0x24]
mov ecx, dword [esp + 0x18]
push edi
call fcn.0049b1d0
push dword [esp + 0x44]
mov ecx, dword [esp + 0x30]
mov edx, ecx
push dword [esp + 0x54]
push edi
mov eax, dword [ecx + 0x6c]
push dword [esp + 0x24]
mov edi, dword [esp + 0x44]
mov ecx, dword [esp + 0x2c]
push edi
mov dword [esi - 0xc], eax
call fcn.0049c7f0
mov ecx, dword [esi - 0x14]
add esp, 0x1c
mov dword [edi + 0x20], ecx
add esi, 0x50
mov ecx, dword [esp + 0x10]
inc ecx
mov dword [esp + 0x48], eax
mov dword [esp + 0x3c], edx
mov dword [esp + 0x10], ecx
cmp ecx, dword [esp + 0x38]
jl 0x4a82e0
mov eax, edi
pop edi
pop esi
mov ecx, dword [esp + 0xb4]
xor ecx, esp
call fcn.00517154
mov esp, ebp
pop ebp
ret
mov edi, dword [esp + 0x2c]
mov ecx, dword [esp + 0x14]
mov edx, edi
mov eax, dword [edi + 0x28]
mov dword [ecx + 0x80], eax
mov ecx, dword [esp + 0x30]
call fcn.004a3530
mov ecx, dword [esp + 0xbc]
xor eax, eax
pop edi
pop esi
xor ecx, esp
call fcn.00517154
mov esp, ebp
pop ebp
ret