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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x84
mov eax, dword [0x609e44]
xor eax, esp
mov dword [esp + 0x80], eax
mov eax, dword [ebp + 0x14]
push ebx
push esi
mov esi, ecx
mov dword [esp + 0x40], edx
xor ecx, ecx
mov dword [esp + 0x14], esi
xor edx, edx
mov dword [esp + 0x60], ecx
push edi
mov ebx, dword [esi + 8]
mov edi, dword [ebp + 8]
mov dword [esp + 0x4c], edi
mov dword [esp + 0x3c], eax
mov ecx, dword [ebx + 0x6c]
mov byte [esp + 0x1f], 0
mov dword [esp + 0x60], 0
mov dword [esp + 0x5c], edx
mov dword [esp + 0x50], ebx
mov dword [esp + 0x6c], ecx
cmp dword [ebx + 0x70], ecx
jg 0x4e1519
push edx
push edx
push edx
mov edx, 0x11
mov ecx, ebx
call fcn.0047a300
add esp, 0xc
mov dword [esp + 0x6c], eax
jmp 0x4e153c
lea eax, [ecx + 1]
mov dword [ebx + 0x6c], eax
lea ecx, [ecx + ecx*4]
mov eax, dword [ebx + 0x68]
mov dword [eax + ecx*4], 0x11
mov dword [eax + ecx*4 + 4], edx
mov dword [eax + ecx*4 + 8], edx
mov dword [eax + ecx*4 + 0xc], edx
mov dword [eax + ecx*4 + 0x10], edx
mov eax, dword [edi + 0x10]
xor edx, edx
mov ecx, dword [esp + 0x3c]
xorps xmm0, xmm0
mov dword [esp + 0x58], eax
mov eax, dword [esp + 0x44]
mov dword [esp + 0xc], edx
mov ecx, dword [ecx + 0x48]
mov dword [esp + 0x54], ecx
mov edi, dword [eax + 0x14]
mov eax, dword [eax + 0xc]
movlpd qword [esp + 0x10], xmm0
mov dword [esp + 0x68], 3
lea eax, [eax + eax*2]
shl eax, 4
add eax, edi
mov dword [esp + 0x2c], eax
cmp edi, eax
jae 0x4e16fe
mov eax, dword [esp + 0x14]
mov dword [esp + 0x34], eax
mov eax, dword [esp + 0x10]
mov dword [esp + 0x38], eax
jmp 0x4e1599
mov ecx, dword [esp + 0x54]
mov eax, dword [ecx]
or eax, dword [ecx + 4]
mov ebx, dword [edi]
jne 0x4e160e
test byte [edi + 0xa], 2
jne 0x4e160e
test byte [ebx + 4], 1
jne 0x4e160e
mov eax, dword [esp + 0x68]
lea ecx, [esp + 0x70]
mov word [esp + 0x84], ax
mov edx, ebx
mov eax, dword [esp + 0x4c]
mov dword [esp + 0x74], fcn.00493910
mov dword [esp + 0x78], 0x4937e0
mov eax, dword [eax + 0x2c]
mov dword [esp + 0x88], eax
call fcn.0048e580
cmp word [esp + 0x84], 0
je 0x4e160e
mov ecx, dword [esi]
mov edx, ebx
push 0
push 0
call fcn.00492790
mov edx, dword [esp + 0x68]
mov ecx, esi
push eax
call fcn.00492120
add esp, 0xc
mov dword [esp + 0x60], eax
push dword [ebp + 0x10]
mov edx, dword [esp + 0x50]
mov ecx, edi
push dword [ebp + 0xc]
call fcn.004e13b0
add esp, 8
test eax, eax
je 0x4e16df
mov ecx, dword [edi + 0x1c]
xor esi, esi
cmp ecx, 0x40
jl 0x4e163b
mov ebx, closesocket
jmp 0x4e1650
mov eax, ecx
xor ebx, ebx
bts esi, eax
cmp eax, 0x20
cmovae ebx, esi
xor esi, ebx
cmp eax, 0x40
cmovae ebx, esi
cmp byte [esp + 0x1f], 0
jne 0x4e167d
mov edx, dword [esp + 0x58]
lea ecx, [ecx + ecx*4]
mov eax, dword [edx + 4]
push dword [eax + ecx*4]
push dword [edx]
push str.automatic_index_on__s__s_
push 0x11c
call fcn.0045ade0
add esp, 0x10
mov byte [esp + 0x1f], 1
mov ecx, esi
mov eax, ebx
and ecx, dword [esp + 0x38]
and eax, dword [esp + 0x34]
or ecx, eax
jne 0x4e16db
mov ecx, dword [esp + 0x18]
mov eax, dword [esp + 0xc]
mov edx, dword [esp + 0x54]
inc eax
push eax
mov ecx, dword [ecx]
mov dword [esp + 0x2c], eax
call fcn.004e2460
add esp, 4
test eax, eax
jne 0x4e1fa8
mov eax, dword [esp + 0x54]
mov ecx, dword [esp + 0xc]
or dword [esp + 0x38], esi
mov edx, dword [esp + 0x28]
mov eax, dword [eax + 0x30]
mov esi, dword [esp + 0x18]
mov dword [esp + 0xc], edx
mov dword [eax + ecx*4], edi
mov ecx, dword [esp + 0x34]
or ecx, ebx
mov dword [esp + 0x34], ecx
jmp 0x4e16e7
mov esi, dword [esp + 0x18]
mov edx, dword [esp + 0xc]
mov ecx, dword [esp + 0x34]
add edi, 0x30
cmp edi, dword [esp + 0x2c]
jb 0x4e1595
mov ebx, dword [esp + 0x50]
mov edi, dword [esp + 0x38]
jmp 0x4e1706
mov ecx, dword [esp + 0x14]
mov edi, dword [esp + 0x10]
movzx eax, dx
not ecx
mov edx, dword [esp + 0x54]
or ecx, 0x80000000
not edi
mov word [edx + 0x28], ax
mov word [edx + 0x18], ax
mov eax, dword [esp + 0x4c]
mov dword [edx + 0x24], 0x4241
and ecx, dword [eax + 0x3c]
mov edx, dword [eax + 0x38]
and edi, edx
mov eax, dword [esp + 0x58]
mov dword [esp + 0x38], edi
mov edi, 0x3f
mov dword [esp + 0x34], ecx
mov dword [esp + 0x40], edx
movzx eax, word [eax + 0x2a]
movsx ecx, ax
mov dword [esp + 0x28], ecx
cmp di, ax
jge 0x4e175f
mov dword [esp + 0x48], edi
xor edi, edi
jmp 0x4e176f
mov eax, ecx
mov dword [esp + 0x28], ecx
xor edi, edi
mov dword [esp + 0x48], eax
test eax, eax
jle 0x4e17b1
mov ebx, dword [esp + 0x48]
mov esi, dword [esp + 0x34]
xor edx, edx
xor ecx, ecx
mov eax, edi
bts edx, eax
cmp eax, 0x20
cmovae ecx, edx
xor edx, ecx
cmp eax, 0x40
cmovae ecx, edx
and edx, dword [esp + 0x38]
and ecx, esi
or edx, ecx
je 0x4e179c
inc dword [esp + 0xc]
inc edi
cmp edi, ebx
jl 0x4e1777
mov ebx, dword [esp + 0x50]
mov esi, dword [esp + 0x18]
mov ecx, dword [esp + 0x28]
mov edx, dword [esp + 0x40]
mov eax, dword [esp + 0x4c]
cmp dword [eax + 0x3c], 0
jg 0x4e17d0
jl 0x4e17c1
test edx, edx
jae 0x4e17d0
mov eax, dword [esp + 0xc]
add eax, 0xffffffc1
add eax, ecx
mov dword [esp + 0xc], eax
jmp 0x4e17d4
mov eax, dword [esp + 0xc]
mov ecx, dword [esi]
movzx eax, ax
inc eax
movzx eax, ax
mov dword [esp + 0x20], eax
cwde
lea edx, [eax*4 + 7]
lea eax, [eax + eax*4]
and edx, 0xfffffff8
add eax, 9
mov dword [esp + 0x40], edx
and eax, 0xfffffff8
add edx, 0x48
add eax, edx
mov dword [esp + 0x28], eax
cdq
push edx
push eax
test ecx, ecx
je 0x4e1816
call fcn.004581b0
mov edi, eax
mov dword [esp + 0x38], edi
jmp 0x4e1821
call fcn.00457ba0
mov edi, eax
mov dword [esp + 0x38], eax
add esp, 8
test edi, edi
je 0x4e1fac
push dword [esp + 0x28]
push 0
push edi
call sub.VCRUNTIME140.dll_memset
mov edx, dword [esp + 0x2c]
lea eax, [edi + 0x48]
mov dword [edi + 0x20], eax
add esp, 0xc
add eax, dword [esp + 0x40]
xorps xmm0, xmm0
mov dword [edi + 8], eax
movsx ecx, dx
mov word [edi + 0x34], dx
movlpd qword [esp + 0x10], xmm0
lea eax, [eax + ecx*2]
add eax, 2
mov dword [edi + 4], eax
lea eax, [eax + ecx*2]
mov ecx, dword [esp + 0xc]
mov dword [edi + 0x1c], eax
movzx eax, cx
mov word [edi + 0x32], ax
mov eax, dword [esp + 0x54]
mov dword [eax + 0x20], edi
mov eax, dword [esp + 0x58]
mov dword [edi + 0xc], eax
xor eax, eax
mov dword [esp + 0x24], eax
mov eax, dword [esp + 0x44]
mov dword [edi], str.auto_index
mov eax, dword [eax + 0x14]
mov dword [esp + 0x20], eax
cmp eax, dword [esp + 0x2c]
jae 0x4e19b9
mov ecx, dword [esp + 0x48]
mov ebx, dword [esp + 0x30]
mov dword [esp + 0x48], ecx
mov ecx, dword [esp + 0x14]
mov dword [esp + 0x28], ecx
mov ecx, dword [esp + 0x10]
mov dword [esp + 0x40], ecx
push dword [ebp + 0x10]
mov edx, dword [esp + 0x50]
mov ecx, eax
push dword [ebp + 0xc]
call fcn.004e13b0
add esp, 8
test eax, eax
je 0x4e19a0
mov eax, dword [esp + 0x20]
xor edx, edx
mov eax, dword [eax + 0x1c]
movzx ecx, ax
mov dword [esp + 0x10], ecx
cmp eax, 0x40
jl 0x4e18f9
mov edi, closesocket
jmp 0x4e190c
xor edi, edi
bts edx, eax
cmp eax, 0x20
cmovae edi, edx
xor edx, edi
cmp eax, 0x40
cmovae edi, edx
mov ecx, edx
mov eax, edi
and ecx, dword [esp + 0x40]
and eax, dword [esp + 0x28]
or ecx, eax
jne 0x4e19a0
mov eax, dword [esp + 0x20]
or dword [esp + 0x28], edi
mov edi, dword [esp + 0x24]
or dword [esp + 0x40], edx
mov ecx, dword [eax]
mov eax, dword [ebx + 4]
mov edx, dword [esp + 0x10]
mov word [eax + edi*2], dx
test dword [ecx + 4], 0x200
je 0x4e194e
mov eax, dword [ecx + 0xc]
mov edx, dword [ecx + 0x10]
jmp 0x4e1954
mov eax, dword [ecx + 0x10]
mov edx, dword [ecx + 0xc]
test dword [edx + 4], 0x100
mov dword [esp + 0x10], eax
jne 0x4e1981
test eax, eax
je 0x4e1972
test dword [eax + 4], 0x100
je 0x4e1972
mov edx, eax
jmp 0x4e1981
mov ecx, esi
call fcn.004914c0
test eax, eax
jne 0x4e198c
mov edx, dword [esp + 0x10]
mov ecx, esi
call fcn.004914c0
test eax, eax
je 0x4e1990
mov ecx, dword [eax]
jmp 0x4e1995
mov ecx, 0x5fa794
mov eax, dword [ebx + 0x20]
mov dword [eax + edi*4], ecx
inc edi
mov dword [esp + 0x24], edi
mov eax, dword [esp + 0x20]
add eax, 0x30
mov dword [esp + 0x20], eax
cmp eax, dword [esp + 0x2c]
jb 0x4e18c1
mov ebx, dword [esp + 0x50]
xor edi, edi
cmp dword [esp + 0x48], edi
jle 0x4e1a18
mov ebx, dword [esp + 0x24]
mov esi, dword [esp + 0x30]
nop dword [eax]
xor edx, edx
xor ecx, ecx
mov eax, edi
bts edx, eax
cmp eax, 0x20
cmovae ecx, edx
xor edx, ecx
cmp eax, 0x40
cmovae ecx, edx
and edx, dword [esp + 0x38]
and ecx, dword [esp + 0x34]
or edx, ecx
je 0x4e1a05
mov eax, dword [esi + 4]
mov word [eax + ebx*2], di
mov eax, dword [esi + 0x20]
mov dword [eax + ebx*4], 0x5fa794
inc ebx
inc edi
cmp edi, dword [esp + 0x48]
jl 0x4e19d0
mov esi, dword [esp + 0x18]
mov dword [esp + 0x24], ebx
mov ebx, dword [esp + 0x50]
mov eax, dword [esp + 0x4c]
cmp dword [eax + 0x3c], 0
jg 0x4e1a68
jl 0x4e1a2a
cmp dword [eax + 0x38], 0
jae 0x4e1a68
mov eax, dword [esp + 0x58]
mov ecx, 0x3f
mov edx, dword [esp + 0x24]
mov edi, dword [esp + 0x30]
cmp cx, word [eax + 0x2a]
jge 0x4e1a70
mov ebx, eax
mov eax, dword [edi + 4]
mov word [eax + edx*2], cx
inc ecx
mov eax, dword [edi + 0x20]
mov dword [eax + edx*4], 0x5fa794
inc edx
movsx eax, word [ebx + 0x2a]
cmp ecx, eax
jl 0x4e1a43
mov ebx, dword [esp + 0x50]
mov dword [esp + 0x24], edx
jmp 0x4e1a70
mov edi, dword [esp + 0x30]
mov edx, dword [esp + 0x24]
mov eax, dword [edi + 4]
or ecx, 0xffffffff
mov word [eax + edx*2], cx
mov eax, dword [edi + 0x20]
mov ecx, dword [esp + 0x3c]
mov dword [eax + edx*4], 0x5fa794
mov eax, dword [esi + 0x28]
mov edx, dword [esp + 0xc]
mov dword [ecx + 8], eax
inc edx
inc dword [esi + 0x28]
mov eax, dword [ecx + 8]
mov ecx, dword [ebx + 0x6c]
mov dword [esp + 0x10], eax
cmp dword [ebx + 0x70], ecx
jg 0x4e1abd
push 0
push edx
push eax
mov edx, 0x63
mov ecx, ebx
call fcn.0047a300
add esp, 0xc
lea edi, [ebx + 0x68]
jmp 0x4e1af2
mov esi, dword [esp + 0x10]
lea eax, [ecx + 1]
mov dword [ebx + 0x6c], eax
lea edi, [ebx + 0x68]
mov eax, dword [edi]
lea ecx, [ecx + ecx*4]
mov dword [eax + ecx*4 + 4], esi
mov esi, dword [esp + 0x18]
mov dword [eax + ecx*4], 0x63
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 + 8]
mov ecx, esi
mov edx, dword [esp + 0x30]
mov dword [esp + 0xc], edi
mov dword [esp + 0x10], eax
call fcn.004abce0
mov dword [esp + 0x2c], eax
test eax, eax
je 0x4e1b49
mov edx, dword [esp + 0x10]
mov ecx, dword [edx]
cmp byte [ecx + 0x51], 0
je 0x4e1b2f
push eax
mov edx, 0xfffffff7
call fcn.0047af00
add esp, 4
lea edi, [ebx + 0x68]
jmp 0x4e1b45
mov eax, dword [edx + 0x6c]
lea ecx, [eax + eax*4]
mov eax, dword [edx + 0x68]
mov edx, dword [esp + 0x2c]
mov byte [eax + ecx*4 - 0x13], 0xf7
mov dword [eax + ecx*4 - 4], edx
mov dword [esp + 0xc], edi
mov edx, dword [esp + 0x3c]
movzx eax, byte [edx + 0x34]
lea ecx, [eax + eax*8]
mov eax, dword [esp + 0x44]
mov eax, dword [eax]
mov eax, dword [eax + 4]
test byte [eax + ecx*8 + 0x30], 0x10
lea eax, [eax + ecx*8]
mov dword [esp + 0x44], eax
je 0x4e1c6d
mov ecx, dword [ebx + 0x6c]
mov edx, dword [eax + 0x24]
mov dword [esp + 0x2c], edx
mov dword [esp + 0x64], ecx
cmp dword [ebx + 0x70], ecx
jg 0x4e1ba1
push 0
push 0
push 0
mov edx, 0x45
mov ecx, ebx
call fcn.0047a300
mov edx, dword [esp + 0x38]
add esp, 0xc
mov dword [esp + 0x64], eax
jmp 0x4e1bd7
mov esi, dword [esp + 0x18]
lea eax, [ecx + 1]
mov dword [ebx + 0x6c], eax
lea ecx, [ecx + ecx*4]
mov eax, dword [edi]
mov dword [eax + ecx*4], 0x45
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 eax, dword [esp + 0x44]
mov ecx, dword [ebx + 0x6c]
mov eax, dword [eax + 0x20]
mov dword [esp + 0x10], eax
cmp dword [ebx + 0x70], ecx
jg 0x4e1c03
push eax
push 0
push edx
mov edx, 0xd
mov ecx, ebx
call fcn.0047a300
mov edx, dword [esp + 0x38]
add esp, 0xc
jmp 0x4e1c31
lea eax, [ecx + 1]
mov dword [ebx + 0x6c], eax
lea ecx, [ecx + ecx*4]
mov eax, dword [edi]
mov edi, dword [esp + 0x10]
mov dword [eax + ecx*4], 0xd
mov dword [eax + ecx*4 + 4], edx
mov dword [eax + ecx*4 + 8], 0
mov dword [eax + ecx*4 + 0xc], edi
mov dword [eax + ecx*4 + 0x10], 0
mov edi, dword [ebx + 0x6c]
cmp dword [ebx + 0x70], edi
jg 0x4e1c51
push 0
push 0
push edx
mov edx, 0xe
mov ecx, ebx
call fcn.0047a300
add esp, 0xc
mov edi, eax
jmp 0x4e1cc6
mov esi, dword [esp + 0x18]
lea eax, [edi + 1]
mov dword [ebx + 0x6c], eax
lea ecx, [edi + edi*4]
mov eax, dword [esp + 0xc]
mov eax, dword [eax]
mov dword [eax + ecx*4], 0xe
jmp 0x4e1caa
mov edi, dword [ebx + 0x6c]
mov edx, dword [edx + 4]
cmp dword [ebx + 0x70], edi
jg 0x4e1c90
push 0
push 0
push edx
mov edx, 0x25
mov ecx, ebx
call fcn.0047a300
add esp, 0xc
mov edi, eax
jmp 0x4e1cc6
lea eax, [edi + 1]
mov dword [ebx + 0x6c], eax
lea ecx, [edi + edi*4]
mov eax, dword [esp + 0xc]
mov ebx, dword [esp + 0x50]
mov eax, dword [eax]
mov dword [eax + ecx*4], 0x25
mov dword [eax + ecx*4 + 0x10], 0
mov dword [eax + ecx*4 + 0xc], 0
mov dword [eax + ecx*4 + 8], 0
mov dword [eax + ecx*4 + 4], edx
mov eax, dword [esp + 0x60]
test eax, eax
je 0x4e1cf0
dec dword [esi + 0x38]
mov ecx, dword [esi + 0x38]
push 0x10
push ecx
push eax
push esi
mov dword [esp + 0x6c], ecx
call fcn.0049a0f0
mov eax, dword [esp + 0x64]
add esp, 0x10
or dword [eax + 0x24], 0x20000
mov al, byte [esi + 0x13]
test al, al
jne 0x4e1cff
inc dword [esi + 0x2c]
mov eax, dword [esi + 0x2c]
jmp 0x4e1d0e
dec al
mov byte [esi + 0x13], al
movzx eax, al
mov eax, dword [esi + eax*4 + 0x98]
mov ecx, dword [esp + 0x3c]
mov edx, dword [esp + 0x30]
push 0
push 0
push 0
push 0
push eax
push dword [ecx + 4]
mov ecx, esi
mov dword [esp + 0x38], eax
call fcn.004ae960
mov ecx, dword [ebx + 0x6c]
add esp, 0x18
mov dword [esp + 0x2c], eax
mov eax, dword [esp + 0x3c]
mov eax, dword [eax + 8]
mov dword [esp + 0x10], eax
cmp dword [ebx + 0x70], ecx
jg 0x4e1d63
push 0
push dword [esp + 0x24]
mov edx, 0x82
mov ecx, ebx
push eax
call fcn.0047a300
mov edx, dword [esp + 0x18]
add esp, 0xc
jmp 0x4e1d9d
mov edx, dword [esp + 0xc]
lea eax, [ecx + 1]
mov esi, dword [esp + 0x10]
lea ecx, [ecx + ecx*4]
mov dword [ebx + 0x6c], eax
mov eax, dword [edx]
mov dword [eax + ecx*4 + 4], esi
mov esi, dword [esp + 0x20]
mov dword [eax + ecx*4 + 8], esi
mov esi, dword [esp + 0x18]
mov dword [eax + ecx*4], 0x82
mov dword [eax + ecx*4 + 0xc], 0
mov dword [eax + ecx*4 + 0x10], 0
mov ecx, dword [ebx + 0x6c]
test ecx, ecx
jle 0x4e1db6
mov eax, dword [edx]
lea ecx, [ecx + ecx*4]
mov edx, 0x10
mov word [eax + ecx*4 - 0x12], dx
mov ecx, dword [ebx + 0x6c]
cmp dword [esp + 0x60], 0
je 0x4e1dea
mov edx, dword [ebx + 0xc]
not dword [esp + 0x5c]
mov eax, dword [edx + 0x3c]
add eax, dword [edx + 0x38]
jns 0x4e1de0
mov edx, dword [esp + 0x5c]
mov ecx, dword [ebx + 0xc]
push edx
mov edx, ebx
call fcn.0047aae0
add esp, 4
jmp 0x4e1dea
mov eax, dword [edx + 0x40]
mov edx, dword [esp + 0x5c]
mov dword [eax + edx*4], ecx
mov edx, dword [esp + 0x44]
test byte [edx + 0x30], 0x10
je 0x4e1eaf
mov ecx, dword [esp + 0x64]
test ecx, ecx
jns 0x4e1e04
mov ecx, dword [ebx + 0x6c]
dec ecx
mov eax, dword [ebx]
cmp byte [eax + 0x51], 0
je 0x4e1e13
mov ecx, 0x60d7e0
jmp 0x4e1e1f
mov eax, dword [esp + 0xc]
lea ecx, [ecx + ecx*4]
mov eax, dword [eax]
lea ecx, [eax + ecx*4]
mov eax, dword [esp + 0x24]
add eax, dword [esp + 0x2c]
mov esi, dword [esp + 0x18]
mov dword [ecx + 8], eax
mov ecx, esi
mov eax, dword [esp + 0x3c]
push dword [eax + 8]
push dword [edx + 0x28]
mov edx, edi
push dword [eax + 4]
call fcn.004e1310
mov ecx, dword [ebx + 0x6c]
add esp, 0xc
cmp dword [ebx + 0x70], ecx
jg 0x4e1e70
push 0
push edi
push 0
mov edx, 0xb
mov ecx, ebx
call fcn.0047a300
mov eax, dword [esp + 0x50]
add esp, 0xc
and dword [eax + 0x30], 0xffffffef
jmp 0x4e1f2c
lea eax, [ecx + 1]
mov dword [ebx + 0x6c], eax
lea ecx, [ecx + ecx*4]
mov eax, dword [esp + 0xc]
mov eax, dword [eax]
mov dword [eax + ecx*4], 0xb
mov dword [eax + ecx*4 + 4], 0
mov dword [eax + ecx*4 + 8], edi
mov dword [eax + ecx*4 + 0xc], 0
mov dword [eax + ecx*4 + 0x10], 0
mov eax, dword [esp + 0x44]
and dword [eax + 0x30], 0xffffffef
jmp 0x4e1f2c
mov ecx, dword [esp + 0x3c]
lea eax, [edi + 1]
mov edx, dword [ecx + 4]
mov ecx, dword [ebx + 0x6c]
mov dword [esp + 0x10], edx
cmp dword [ebx + 0x70], ecx
jg 0x4e1ede
push 0
push eax
push edx
mov edx, 5
mov ecx, ebx
call fcn.0047a300
mov edx, dword [esp + 0x18]
add esp, 0xc
jmp 0x4e1f17
mov edx, dword [esp + 0xc]
lea eax, [ecx + 1]
mov esi, dword [esp + 0x10]
lea ecx, [ecx + ecx*4]
mov dword [ebx + 0x6c], eax
mov eax, dword [edx]
mov dword [eax + ecx*4 + 4], esi
lea esi, [edi + 1]
mov dword [eax + ecx*4 + 8], esi
mov esi, dword [esp + 0x18]
mov dword [eax + ecx*4], 5
mov dword [eax + ecx*4 + 0xc], 0
mov dword [eax + ecx*4 + 0x10], 0
mov eax, dword [ebx + 0x6c]
test eax, eax
jle 0x4e1f2c
lea ecx, [eax + eax*4]
mov eax, dword [edx]
mov edx, dword [esp + 0x68]
mov word [eax + ecx*4 - 0x12], dx
mov eax, dword [ebx]
mov ecx, dword [ebx + 0x6c]
mov edx, dword [esp + 0xc]
mov dword [esp + 0x10], ecx
cmp byte [eax + 0x51], 0
je 0x4e1f46
mov eax, 0x60d7e0
jmp 0x4e1f5a
lea eax, [ecx - 1]
test edi, edi
cmovns eax, edi
lea ecx, [eax + eax*4]
mov eax, dword [edx]
lea eax, [eax + ecx*4]
mov ecx, dword [esp + 0x10]
mov dword [eax + 8], ecx
mov ecx, dword [esp + 0x20]
test ecx, ecx
je 0x4e1f79
mov al, byte [esi + 0x13]
cmp al, 8
jae 0x4e1f79
movzx eax, al
mov dword [esi + eax*4 + 0x98], ecx
inc byte [esi + 0x13]
mov eax, dword [ebx]
mov edi, dword [ebx + 0x6c]
cmp byte [eax + 0x51], 0
je 0x4e1f8e
mov eax, 0x60d7e0
mov dword [eax + 8], edi
jmp 0x4e1fac
mov ecx, dword [esp + 0x6c]
lea eax, [edi - 1]
test ecx, ecx
cmovns eax, ecx
lea ecx, [eax + eax*4]
mov eax, dword [edx]
mov dword [eax + ecx*4 + 8], edi
lea eax, [eax + ecx*4]
jmp 0x4e1fac
mov esi, dword [esp + 0x18]
mov eax, dword [esp + 0x60]
test eax, eax
je 0x4e1fbd
mov ecx, dword [esi]
mov edx, eax
call fcn.00492560
mov ecx, dword [esp + 0x8c]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.005a6fed
mov esp, ebp
pop ebp
ret