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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x6c
push ebx
push esi
mov esi, edx
mov dword [esp + 0x1c], ecx
xorps xmm0, xmm0
mov dword [esp + 0x20], esi
push edi
movlpd qword [esp + 0x60], xmm0
mov edx, dword [esi]
mov dword [esp + 0x3c], 0
mov dword [esp + 0x50], 0
mov dword [esp + 0x54], 0
mov eax, dword [edx]
mov dword [esp + 0x14], eax
mov byte [esp + 0x13], 0
mov ecx, dword [eax]
mov dword [esp + 0x1c], ecx
cmp byte [ecx + 0x51], 0
jne 0x4e7bde
mov ecx, dword [ebp + 8]
mov ebx, dword [esi + 0x14]
lea ecx, [ecx + ecx*2]
shl ecx, 4
add ebx, ecx
mov dword [esp + 0x18], ecx
lea ecx, [edx + 0x1e8]
mov dword [esp + 0x28], ecx
mov edi, dword [ebx]
mov dword [esp + 0x6c], edi
mov edx, dword [edi + 0xc]
test edx, edx
je 0x4e70b0
call fcn.004e7cf0
mov dword [esp + 0x48], eax
mov eax, dword [esp + 0x14]
mov dword [esp + 0x4c], edx
jmp 0x4e70c6
movlpd qword [esp + 0x70], xmm0
mov ecx, dword [esp + 0x74]
mov dword [esp + 0x4c], ecx
mov ecx, dword [esp + 0x70]
mov dword [esp + 0x48], ecx
movzx ecx, byte [edi]
mov dword [esp + 0x2c], ecx
cmp ecx, 0x31
jne 0x4e7101
mov edx, edi
mov ecx, eax
call fcn.004af240
test eax, eax
jne 0x4e7bde
test dword [edi + 4], 0x800
mov edx, dword [edi + 0x14]
mov ecx, dword [esp + 0x28]
je 0x4e70fa
call fcn.004e6dd0
jmp 0x4e7139
call fcn.004e7e30
jmp 0x4e7139
cmp ecx, 0x32
jne 0x4e7116
mov dword [ebx + 0x20], 0
mov dword [ebx + 0x24], 0
jmp 0x4e713f
mov edx, dword [edi + 0x10]
test edx, edx
je 0x4e7128
mov ecx, dword [esp + 0x28]
call fcn.004e7cf0
jmp 0x4e7139
xorps xmm0, xmm0
movlpd qword [esp + 0x70], xmm0
mov edx, dword [esp + 0x74]
mov eax, dword [esp + 0x70]
mov dword [ebx + 0x20], eax
mov dword [ebx + 0x24], edx
mov eax, dword [esp + 0x28]
mov edx, edi
mov ecx, eax
mov dword [eax], 0
call fcn.004e7cf0
mov ecx, dword [esp + 0x28]
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], edx
cmp dword [ecx], 0
je 0x4e716c
mov edx, 0x1000
or word [ebx + 0xa], dx
test byte [edi + 4], 1
je 0x4e71d1
movsx edx, word [edi + 0x24]
call fcn.004e8180
or dword [esp + 0x34], edx
mov ecx, eax
mov eax, dword [esp + 0x30]
or eax, ecx
mov dword [esp + 0x40], ecx
add dword [esp + 0x40], 0xffffffff
mov dword [esp + 0x30], eax
mov dword [esp + 0x38], eax
mov eax, dword [esp + 0x34]
mov dword [esp + 0x44], edx
adc dword [esp + 0x44], 0xffffffff
shrd dword [esp + 0x38], eax, 1
shr eax, 1
cmp eax, edx
jb 0x4e71e3
ja 0x4e71b9
cmp dword [esp + 0x38], ecx
jb 0x4e71e3
push str.typeof
push dword [esp + 0x18]
call fcn.00479ca0
add esp, 8
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov ecx, dword [esp + 0x64]
mov dword [esp + 0x44], ecx
mov ecx, dword [esp + 0x60]
mov dword [esp + 0x40], ecx
jmp 0x4e71e7
mov eax, dword [esp + 0x30]
mov dword [ebx + 0x28], eax
mov eax, dword [esp + 0x34]
mov dword [ebx + 0x2c], eax
xor eax, eax
mov word [ebx + 0xc], ax
mov eax, dword [esp + 0x2c]
mov dword [ebx + 0x14], 0xffffffff
mov dword [ebx + 0x10], 0xffffffff
cmp eax, 0x31
je 0x4e7359
cmp eax, 0x35
jb 0x4e7220
cmp eax, 0x39
jbe 0x4e7359
cmp eax, 0x32
je 0x4e7359
cmp eax, 0x2d
je 0x4e7359
mov al, byte [edi]
cmp al, 0x30
jne 0x4e7334
cmp byte [esi + 8], 0x2c
jne 0x4e7334
mov eax, dword [edi + 0x14]
add eax, 4
mov dword [esp + 0x4c], 0
mov dword [esp + 0x58], eax
mov edx, dword [eax]
test edx, edx
je 0x4e7272
mov ecx, dword [esp + 0x1c]
push 0
push 0
call fcn.004ac6d0
add esp, 8
mov ebx, eax
jmp 0x4e7274
xor ebx, ebx
mov edx, dword [edi + 0xc]
test edx, edx
je 0x4e728d
mov ecx, dword [esp + 0x1c]
push 0
push 0
call fcn.004ac6d0
add esp, 8
jmp 0x4e728f
xor eax, eax
mov ecx, dword [esp + 0x14]
push ebx
push eax
mov eax, dword [esp + 0x54]
movzx edx, byte [eax + 0x65fe20]
call fcn.004ac0e0
add esp, 8
test eax, eax
je 0x4e72bd
mov ecx, dword [edi + 4]
and ecx, 1
or dword [eax + 4], ecx
mov cx, word [edi + 0x24]
mov word [eax + 0x24], cx
push 3
mov edx, eax
mov ecx, esi
call fcn.004e5da0
mov ebx, dword [esp + 0x28]
add esp, 4
mov ecx, dword [esp + 0x20]
mov esi, eax
mov edx, ebx
push esi
call fcn.004e7020
mov ecx, dword [ebx + 0x14]
lea edx, [esi + esi*2]
mov eax, dword [esp + 0x1c]
add edx, edx
mov esi, dword [ebp + 8]
add esp, 4
mov dword [ecx + edx*8 + 0x10], esi
lea ebx, [ecx + eax]
mov esi, dword [esp + 0x24]
mov ecx, dword [esi + 0x14]
mov ax, word [ecx + eax + 8]
mov word [ecx + edx*8 + 8], ax
mov eax, dword [esi + 0x14]
mov ecx, dword [esp + 0x18]
inc byte [eax + ecx + 0xe]
mov ecx, dword [esp + 0x4c]
mov eax, dword [esp + 0x58]
inc ecx
add eax, 0x14
mov dword [esp + 0x4c], ecx
mov dword [esp + 0x58], eax
cmp ecx, 2
jl 0x4e7258
jmp 0x4e755d
cmp al, 0x2b
jne 0x4e755d
push dword [ebp + 8]
mov ecx, dword [esp + 0x24]
mov edx, esi
call fcn.004e6630
mov ebx, dword [esi + 0x14]
add esp, 4
add ebx, dword [esp + 0x18]
jmp 0x4e755d
mov edx, dword [edi + 0xc]
test edx, edx
je 0x4e7370
test dword [edx + 4], 0x1000
je 0x4e7370
mov edx, dword [edx + 0xc]
test edx, edx
jne 0x4e7360
mov eax, dword [edi + 0x10]
mov dword [esp + 0x38], eax
test eax, eax
je 0x4e7394
nop dword [eax + eax]
test dword [eax + 4], 0x1000
je 0x4e7390
mov eax, dword [eax + 0xc]
test eax, eax
jne 0x4e7380
mov dword [esp + 0x38], eax
mov ecx, dword [ebx + 0x20]
mov eax, dword [ebx + 0x24]
and ecx, dword [esp + 0x48]
and eax, dword [esp + 0x4c]
or ecx, eax
mov dword [esp + 0x58], 0x1fff
je 0x4e73b6
mov dword [esp + 0x58], 0x800
mov eax, dword [ebx + 0x18]
test eax, eax
jle 0x4e73c7
lea ecx, [eax + eax*4]
mov eax, dword [edx + 0x14]
mov edx, dword [eax + ecx*4 - 0x10]
push dword [esp + 0x2c]
mov ecx, dword [esp + 0x24]
push edx
push dword [esp + 0x54]
lea edx, [esp + 0x7c]
push dword [esp + 0x54]
call fcn.004e6fa0
add esp, 0x10
test eax, eax
je 0x4e7408
mov eax, dword [esp + 0x70]
mov ecx, dword [esp + 0x2c]
mov dword [ebx + 0x14], eax
mov eax, dword [esp + 0x74]
mov dword [ebx + 0x1c], eax
call fcn.004e5fd0
and ax, word [esp + 0x58]
mov word [ebx + 0xc], ax
mov ecx, dword [esp + 0x2c]
mov eax, 0x800
cmp ecx, 0x2d
jne 0x4e741a
or word [ebx + 0xa], ax
mov eax, dword [esp + 0x38]
test eax, eax
je 0x4e755d
push ecx
mov ecx, dword [esp + 0x24]
lea edx, [esp + 0x74]
push eax
push dword [ebx + 0x24]
push dword [ebx + 0x20]
call fcn.004e6fa0
add esp, 0x10
test eax, eax
je 0x4e755d
cmp dword [ebx + 0x14], 0
mov dword [esp + 0x60], 0
jl 0x4e75ba
mov ebx, dword [esp + 0x1c]
mov edx, edi
push 0
push 0
mov ecx, ebx
call fcn.004ac6d0
add esp, 8
mov dword [esp + 0x38], eax
cmp byte [ebx + 0x51], 0
je 0x4e748e
test eax, eax
je 0x4e7bde
mov edx, eax
mov ecx, ebx
call fcn.004ac4d0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 3
mov edx, eax
mov ecx, esi
call fcn.004e5da0
add esp, 4
test eax, eax
je 0x4e7bde
push dword [ebp + 8]
lea ebx, [eax + eax*2]
mov edx, eax
shl ebx, 4
mov ecx, esi
add ebx, dword [esi + 0x14]
mov dword [esp + 0x60], ebx
call fcn.004e64e0
add esp, 4
cmp dword [esp + 0x2c], 0x2d
jne 0x4e74d0
mov eax, 0x800
or word [ebx + 0xa], ax
mov ebx, dword [esi + 0x14]
add ebx, dword [esp + 0x18]
mov edx, dword [esp + 0x38]
mov ecx, dword [esp + 0x14]
or word [ebx + 0xa], 8
call fcn.004e6d30
test eax, eax
je 0x4e74fa
mov eax, 0x800
or word [ebx + 0xc], ax
mov dword [esp + 0x60], eax
mov eax, dword [esp + 0x38]
mov ecx, dword [esp + 0x14]
mov edx, eax
call fcn.004e5f20
mov edx, dword [esp + 0x5c]
mov ecx, dword [esp + 0x4c]
or ecx, dword [esp + 0x44]
or word [edx + 0xa], ax
mov eax, dword [esp + 0x70]
mov dword [edx + 0x14], eax
mov eax, dword [esp + 0x74]
mov dword [edx + 0x1c], eax
mov eax, dword [esp + 0x48]
or eax, dword [esp + 0x40]
mov dword [edx + 0x20], eax
mov eax, dword [esp + 0x30]
mov dword [edx + 0x28], eax
mov eax, dword [esp + 0x34]
mov dword [edx + 0x2c], eax
mov eax, dword [esp + 0x38]
mov dword [edx + 0x24], ecx
movzx ecx, byte [eax]
call fcn.004e5fd0
add ax, word [esp + 0x60]
and ax, word [esp + 0x58]
mov word [edx + 0xc], ax
cmp byte [esi + 8], 0x2c
jne 0x4e7bc9
mov ecx, dword [esp + 0x14]
lea eax, [esp + 0x54]
push eax
lea eax, [esp + 0x54]
mov edx, edi
push eax
lea eax, [esp + 0x44]
push eax
call fcn.004e6000
add esp, 0xc
test eax, eax
je 0x4e7815
mov eax, dword [edi + 0x14]
mov ecx, dword [esp + 0x3c]
mov eax, dword [eax + 0x18]
mov dword [esp + 0x60], eax
test ecx, ecx
je 0x4e75c9
push 0
mov edx, ecx
mov ecx, dword [esp + 0x20]
push 0
call fcn.004ac6d0
mov ecx, dword [esp + 0x44]
add esp, 8
mov dword [esp + 0x4c], eax
jmp 0x4e75d1
mov eax, edi
mov dword [esp + 0x5c], ebx
mov dword [esp + 0x38], eax
jmp 0x4e74fe
mov dword [esp + 0x4c], 0
cmp dword [esp + 0x54], 0
je 0x4e7639
mov eax, dword [esp + 0x14]
mov eax, dword [eax]
cmp byte [eax + 0x51], 0
jne 0x4e7639
mov eax, 0x400
or word [ebx + 0xa], ax
xor ebx, ebx
mov eax, dword [ecx + 8]
mov dword [esp + 0x5c], eax
mov cl, byte [eax]
test cl, cl
je 0x4e7639
mov edi, dword [esp + 0x3c]
mov esi, eax
movzx edx, cl
movzx eax, byte [edx + 0x660388]
and al, 0x20
not al
and al, cl
mov byte [esi], al
mov eax, dword [esp + 0x4c]
mov ecx, dword [eax + 8]
movzx eax, byte [edx + 0x660e20]
mov byte [ebx + ecx], al
inc ebx
mov esi, dword [edi + 8]
add esi, ebx
mov cl, byte [esi]
test cl, cl
jne 0x4e7602
mov edi, dword [esp + 0x6c]
mov esi, dword [esp + 0x24]
mov ecx, dword [esp + 0x1c]
cmp byte [ecx + 0x51], 0
jne 0x4e7696
mov eax, dword [esp + 0x4c]
mov edx, dword [eax + 8]
test edx, edx
jne 0x4e7652
xor ecx, ecx
jmp 0x4e7666
mov ecx, edx
lea ebx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4e7657
sub ecx, ebx
and ecx, 0x3fffffff
mov al, byte [edx + ecx - 1]
add edx, ecx
cmp dword [esp + 0x54], 0
mov ecx, dword [esp + 0x50]
je 0x4e7687
xor ebx, ebx
cmp al, 0x40
movzx eax, al
cmove ecx, ebx
mov al, byte [eax + 0x660e20]
inc al
mov dword [esp + 0x58], ecx
mov ecx, dword [esp + 0x1c]
mov byte [edx - 1], al
jmp 0x4e769e
mov eax, dword [esp + 0x50]
mov dword [esp + 0x58], eax
cmp dword [esp + 0x54], 0
mov eax, 0x66084c
mov ebx, 0x66cac4
cmove ebx, eax
mov eax, dword [esp + 0x60]
mov dword [esp + 0x6c], ebx
test eax, eax
je 0x4e76cc
push 0
push 0
mov edx, eax
call fcn.004ac6d0
add esp, 8
jmp 0x4e76ce
xor eax, eax
push dword [esp + 0x3c]
mov edx, eax
push ecx
push ebx
mov ebx, dword [esp + 0x20]
mov ecx, ebx
call fcn.004ab4b0
add esp, 8
mov edx, 0x39
mov ecx, ebx
push eax
call fcn.004ac0e0
add esp, 8
test eax, eax
je 0x4e7709
mov ecx, dword [edi + 4]
and ecx, 1
or dword [eax + 4], ecx
mov cx, word [edi + 0x24]
mov word [eax + 0x24], cx
push 0x103
mov edx, eax
mov ecx, esi
call fcn.004e5da0
mov ecx, dword [esp + 0x24]
add esp, 4
mov edx, esi
mov dword [esp + 0x5c], eax
push eax
call fcn.004e7020
mov eax, dword [esp + 0x64]
add esp, 4
test eax, eax
je 0x4e7749
mov ecx, dword [esp + 0x1c]
mov edx, eax
push 0
push 0
call fcn.004ac6d0
add esp, 8
jmp 0x4e774b
xor eax, eax
push dword [esp + 0x4c]
mov edx, eax
push ecx
push dword [esp + 0x74]
mov ecx, ebx
call fcn.004ab4b0
add esp, 8
mov edx, 0x38
mov ecx, ebx
push eax
call fcn.004ac0e0
add esp, 8
test eax, eax
je 0x4e7785
mov ecx, dword [edi + 4]
and ecx, 1
or dword [eax + 4], ecx
mov cx, word [edi + 0x24]
mov word [eax + 0x24], cx
push 0x103
mov edx, eax
mov ecx, esi
call fcn.004e5da0
mov ecx, dword [esp + 0x24]
add esp, 4
mov edx, esi
mov dword [esp + 0x6c], eax
push eax
call fcn.004e7020
mov ecx, dword [esi + 0x14]
add esp, 4
cmp dword [esp + 0x58], 0
mov eax, dword [esp + 0x18]
lea ebx, [ecx + eax]
je 0x4e7815
mov eax, dword [esp + 0x5c]
lea edx, [eax + eax*2]
mov eax, dword [ebp + 8]
add edx, edx
mov dword [ecx + edx*8 + 0x10], eax
mov ecx, dword [esi + 0x14]
mov eax, dword [esp + 0x18]
movzx eax, word [ecx + eax + 8]
mov word [ecx + edx*8 + 8], ax
mov eax, dword [esi + 0x14]
mov ecx, dword [esp + 0x18]
inc byte [eax + ecx + 0xe]
mov eax, dword [esp + 0x6c]
mov ecx, dword [ebp + 8]
lea edx, [eax + eax*2]
mov eax, dword [esi + 0x14]
add edx, edx
mov dword [eax + edx*8 + 0x10], ecx
mov ecx, dword [esi + 0x14]
mov eax, dword [esp + 0x18]
movzx eax, word [ecx + eax + 8]
mov word [ecx + edx*8 + 8], ax
mov eax, dword [esi + 0x14]
mov ecx, dword [esp + 0x18]
inc byte [eax + ecx + 0xe]
cmp byte [esi + 8], 0x2c
jne 0x4e7bc9
mov ecx, dword [esp + 0x1c]
lea eax, [esp + 0x60]
push eax
lea eax, [esp + 0x60]
mov dword [esp + 0x64], 0
push eax
lea eax, [esp + 0x1b]
mov dword [esp + 0x64], 0
push eax
mov edx, edi
call fcn.004e6340
mov edx, eax
add esp, 0xc
test edx, edx
jle 0x4e7a2e
mov eax, dword [esp + 0x60]
mov ecx, dword [esp + 0x5c]
mov dword [esp + 0x48], eax
mov dword [esp + 0x54], ecx
dec edx
mov dword [esp + 0x6c], edx
test eax, eax
je 0x4e7884
mov ecx, dword [esp + 0x28]
mov edx, eax
call fcn.004e7cf0
mov ecx, dword [esp + 0x54]
mov dword [esp + 0x4c], edx
jmp 0x4e7899
xorps xmm0, xmm0
movlpd qword [esp + 0x70], xmm0
mov eax, dword [esp + 0x74]
mov dword [esp + 0x4c], eax
mov eax, dword [esp + 0x70]
mov dword [esp + 0x50], eax
test ecx, ecx
je 0x4e78ae
mov edx, ecx
mov ecx, dword [esp + 0x28]
call fcn.004e7cf0
jmp 0x4e78bf
xorps xmm0, xmm0
movlpd qword [esp + 0x70], xmm0
mov edx, dword [esp + 0x74]
mov eax, dword [esp + 0x70]
and eax, dword [esp + 0x50]
and edx, dword [esp + 0x4c]
or eax, edx
jne 0x4e7a12
mov eax, dword [esp + 0x48]
test eax, eax
je 0x4e78ef
mov ecx, dword [esp + 0x1c]
mov edx, eax
push 0
push 0
call fcn.004ac6d0
add esp, 8
mov dword [esp + 0x58], eax
jmp 0x4e78f7
mov dword [esp + 0x58], 0
mov eax, dword [esp + 0x14]
push 0
push 0x34
mov ecx, dword [eax]
call fcn.00476a20
mov ebx, eax
add esp, 8
test ebx, ebx
je 0x4e795b
push 0x34
push 0
push ebx
call fcn.005cc450
or eax, 0xffffffff
mov byte [ebx], 0x2e
add esp, 0xc
mov word [ebx + 0x22], ax
mov eax, dword [esp + 0x14]
mov edx, ebx
push dword [esp + 0x58]
mov ecx, dword [eax]
push 0
call fcn.004ac070
mov ecx, dword [esp + 0x1c]
add esp, 8
mov eax, dword [ecx]
mov eax, dword [eax + 0x78]
cmp dword [ebx + 0x18], eax
jle 0x4e7970
push eax
push str.SCopy
push ecx
call fcn.00479ca0
add esp, 0xc
jmp 0x4e7970
mov eax, dword [esp + 0x58]
test eax, eax
je 0x4e7970
mov edx, eax
mov eax, dword [esp + 0x14]
mov ecx, dword [eax]
call fcn.004ac4d0
test byte [edi + 4], 1
je 0x4e7986
test ebx, ebx
je 0x4e7986
or dword [ebx + 4], 1
mov ax, word [edi + 0x24]
mov word [ebx + 0x24], ax
push 3
mov edx, ebx
mov ecx, esi
call fcn.004e5da0
mov esi, dword [esi + 0x14]
add esp, 4
mov ecx, dword [esp + 0x54]
mov ebx, dword [esp + 0x24]
lea edx, [eax + eax*2]
mov eax, dword [esp + 0x50]
shl edx, 4
add esi, edx
mov dword [esi + 0x20], eax
mov eax, dword [esp + 0x4c]
mov dword [esi + 0x24], eax
mov eax, dword [ecx + 0x1c]
mov dword [esi + 0x14], eax
movsx eax, word [ecx + 0x20]
mov ecx, dword [ebp + 8]
mov dword [esi + 0x1c], eax
mov eax, 0x40
mov word [esi + 0xc], ax
mov al, byte [esp + 0x13]
mov byte [esi + 0xf], al
mov eax, dword [ebx + 0x14]
mov dword [eax + edx + 0x10], ecx
mov ecx, dword [ebx + 0x14]
mov eax, dword [esp + 0x18]
mov ax, word [ecx + eax + 8]
mov word [ecx + edx + 8], ax
mov eax, dword [ebx + 0x14]
mov ecx, dword [esp + 0x18]
inc byte [eax + ecx + 0xe]
mov ebx, dword [ebx + 0x14]
add ebx, ecx
mov eax, dword [ebx + 0x28]
or word [ebx + 0xa], 8
mov dword [esi + 0x28], eax
mov eax, dword [ebx + 0x2c]
mov dword [esi + 0x2c], eax
mov esi, dword [esp + 0x24]
mov eax, dword [esp + 0x54]
mov ecx, dword [esp + 0x48]
mov edx, dword [esp + 0x6c]
mov dword [esp + 0x54], ecx
mov dword [esp + 0x48], eax
test edx, edx
jg 0x4e7866
cmp byte [esi + 8], 0x2c
jne 0x4e7bc9
mov al, byte [edi]
cmp al, 0x35
je 0x4e7a46
cmp al, 0x2d
jne 0x4e7b32
mov eax, dword [edi + 0xc]
mov cl, byte [eax]
cmp cl, 0xad
jne 0x4e7a53
mov cl, byte [eax + 2]
cmp cl, 0xae
jne 0x4e7a5d
mov eax, dword [eax + 0x14]
jmp 0x4e7a6c
cmp cl, 0x88
jne 0x4e7b32
mov eax, dword [eax + 0x14]
mov eax, dword [eax + 0x1c]
mov edx, dword [eax]
mov dword [esp + 0x60], edx
cmp edx, 1
jle 0x4e7b32
mov ecx, dword [edi + 0x10]
call fcn.004ab910
cmp eax, edx
jne 0x4e7b32
mov eax, dword [edi + 0xc]
test dword [eax + 4], 0x800
je 0x4e7aa4
test dword [ecx + 4], 0x800
jne 0x4e7b32
xor ebx, ebx
test edx, edx
jle 0x4e7b20
nop word [eax + eax]
mov edx, dword [edi + 0xc]
mov ecx, dword [esp + 0x14]
push ebx
call fcn.004ab940
mov edx, dword [edi + 0x10]
add esp, 4
mov ecx, dword [esp + 0x14]
mov esi, eax
push ebx
call fcn.004ab940
movzx edx, byte [edi]
add esp, 4
mov ecx, dword [esp + 0x14]
push eax
push esi
call fcn.004ac0e0
add esp, 8
test eax, eax
je 0x4e7af8
mov ecx, dword [edi + 4]
and ecx, 1
or dword [eax + 4], ecx
mov cx, word [edi + 0x24]
mov word [eax + 0x24], cx
mov esi, dword [esp + 0x24]
mov edx, eax
push 1
mov ecx, esi
call fcn.004e5da0
mov ecx, dword [esp + 0x24]
add esp, 4
mov edx, esi
push eax
call fcn.004e7020
inc ebx
add esp, 4
cmp ebx, dword [esp + 0x60]
jl 0x4e7ab0
mov ebx, dword [esi + 0x14]
add ebx, dword [esp + 0x18]
or word [ebx + 0xa], 6
xor eax, eax
mov word [ebx + 0xc], ax
cmp byte [esi + 8], 0x2c
jne 0x4e7bc9
cmp byte [edi], 0x31
jne 0x4e7bc9
cmp dword [ebx + 0x18], 0
jne 0x4e7bc9
mov ecx, dword [edi + 0xc]
cmp byte [ecx], 0xae
jne 0x4e7bc9
mov eax, dword [edi + 0x14]
cmp dword [eax + 0x34], 0
jne 0x4e7bc9
cmp dword [eax + 0x44], 0
jne 0x4e7bc9
xor ebx, ebx
call fcn.004ab910
test eax, eax
jle 0x4e7bc9
nop dword [eax]
push 2
mov edx, edi
mov ecx, esi
call fcn.004e5da0
mov esi, eax
inc ebx
mov dword [esp + 0x64], ebx
add esp, 4
mov ebx, dword [esp + 0x24]
mov eax, dword [esp + 0x60]
lea edx, [esi + esi*2]
add edx, edx
mov ecx, dword [ebx + 0x14]
push esi
mov dword [ecx + edx*8 + 0x18], eax
mov edx, ebx
mov ecx, dword [esp + 0x24]
call fcn.004e7020
add esp, 4
mov edx, esi
mov esi, ebx
mov ecx, esi
push dword [ebp + 8]
call fcn.004e64e0
mov ecx, dword [edi + 0xc]
add esp, 4
call fcn.004ab910
mov ebx, dword [esp + 0x60]
cmp ebx, eax
jl 0x4e7b70
mov eax, dword [esi + 0x14]
add eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x40]
or dword [eax + 0x20], ecx
mov ecx, dword [esp + 0x44]
or dword [eax + 0x24], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret