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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x6c
mov eax, dword [ebp + 8]
push ebx
push esi
mov esi, dword [ebp + 0xc]
xor ebx, ebx
push edi
mov edi, dword [eax + 8]
push ebx
push ebx
push ebx
push 0x14
push edi
mov byte [esp + 0x23], bl
mov dword [esp + 0x34], ebx
mov dword [esp + 0x44], ebx
mov dword [esp + 0x48], ebx
mov dword [esp + 0x2c], edi
call fcn.0048e3e0
mov ecx, dword [ebp + 0x10]
mov edx, dword [ecx + 0x10]
mov dword [esp + 0x58], eax
mov eax, dword [esi + 0xc]
mov dword [esp + 0x24], ebx
mov ebx, dword [esi + 0x14]
lea esi, [eax + eax*2]
mov eax, dword [ebp + 0x1c]
mov ecx, dword [eax + 0x40]
shl esi, 4
add esi, ebx
mov dword [esp + 0x30], ecx
xor ecx, ecx
xor eax, eax
add esp, 0x14
mov dword [esp + 0x28], edx
mov dword [esp + 0x2c], esi
mov dword [esp + 0x48], ecx
mov dword [esp + 0x4c], eax
cmp ebx, esi
jae 0x4d952a
jmp 0x4d9370
mov eax, dword [esp + 0x1c]
mov edx, dword [eax]
or edx, dword [eax + 4]
mov esi, dword [ebx]
jne 0x4d93e3
test byte [ebx + 0xa], 2
jne 0x4d93e3
test byte [esi + 4], 1
jne 0x4d93e3
mov eax, dword [ebp + 0x10]
mov ecx, dword [eax + 0x30]
lea edx, [esp + 0x5c]
push esi
push edx
mov byte [esp + 0x78], 3
mov dword [esp + 0x68], fcn.004a3110
mov dword [esp + 0x6c], 0x4a3220
mov dword [esp + 0x7c], ecx
call fcn.0049ec60
add esp, 8
cmp byte [esp + 0x70], 0
je 0x4d93e3
mov eax, dword [ebp + 8]
mov eax, dword [eax]
push 0
push 0
push esi
push eax
call fcn.004a20e0
mov ecx, dword [esp + 0x30]
mov edx, dword [ebp + 8]
push ecx
mov ecx, dword [edx]
call fcn.004a1c60
add esp, 0x14
mov dword [esp + 0x20], eax
mov eax, dword [ebx + 0x14]
mov ecx, dword [ebp + 0x10]
cmp eax, dword [ecx + 0x30]
jne 0x4d9511
movzx eax, word [ebx + 0xc]
test al, 0x82
je 0x4d9511
mov edx, ecx
test byte [edx + 0x24], 8
je 0x4d9416
mov ecx, dword [ebx]
test byte [ecx + 4], 1
jne 0x4d9416
test al, al
js 0x4d9511
mov eax, dword [ebx + 0x20]
mov ecx, dword [ebx + 0x24]
and eax, dword [ebp + 0x14]
and ecx, dword [ebp + 0x18]
or eax, ecx
jne 0x4d9511
mov eax, dword [ebx + 0x1c]
test eax, eax
js 0x4d9511
mov ecx, dword [edx + 0x10]
mov edx, dword [ecx + 4]
mov esi, dword [ebx]
add eax, eax
mov al, byte [edx + eax*8 + 0xd]
mov byte [esp + 0x24], al
mov ecx, dword [esp + 0x24]
push ecx
call fcn.004a1040
add esp, 4
test eax, eax
je 0x4d9511
mov esi, dword [ebx + 0x1c]
cmp esi, 0x40
jl 0x4d9476
mov dword [esp + 0x38], 0
mov dword [esp + 0x3c], accept
jmp 0x4d948c
mov eax, 1
xor edx, edx
mov ecx, esi
call fcn.0050f790
mov dword [esp + 0x38], eax
mov dword [esp + 0x3c], edx
cmp byte [esp + 0xf], 0
jne 0x4d94ba
mov eax, dword [esp + 0x28]
mov edx, dword [eax + 4]
add esi, esi
mov ecx, dword [edx + esi*8]
mov edx, dword [eax]
push ecx
push edx
push str.automatic_index_on__s__s_
push 0x11c
call fcn.004717e0
add esp, 0x10
mov byte [esp + 0xf], 1
mov eax, dword [esp + 0x38]
mov ecx, dword [esp + 0x3c]
and eax, dword [esp + 0x48]
and ecx, dword [esp + 0x4c]
or eax, ecx
jne 0x4d9511
mov eax, dword [ebp + 8]
mov esi, dword [esp + 0x10]
mov ecx, dword [eax]
mov edi, dword [esp + 0x1c]
inc esi
push ecx
mov eax, esi
call fcn.004da360
add esp, 4
test eax, eax
jne 0x4d9e81
mov edx, dword [edi + 0x30]
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x38]
or dword [esp + 0x48], ecx
mov edi, dword [esp + 0x18]
mov dword [edx + eax*4], ebx
mov edx, dword [esp + 0x3c]
or dword [esp + 0x4c], edx
mov dword [esp + 0x10], esi
add ebx, 0x30
cmp ebx, dword [esp + 0x2c]
jb 0x4d9370
mov esi, dword [esp + 0x2c]
mov ecx, dword [esp + 0x48]
mov eax, dword [esp + 0x4c]
mov edx, dword [esp + 0x1c]
mov ebx, dword [esp + 0x10]
mov word [edx + 0x28], bx
mov word [edx + 0x18], bx
mov ebx, dword [ebp + 0x10]
mov dword [edx + 0x24], 0x4241
mov edx, dword [ebx + 0x40]
mov ebx, dword [ebx + 0x44]
not eax
or eax, 0x80000000
mov dword [esp + 0x3c], ebx
and eax, dword [esp + 0x3c]
not ecx
mov dword [esp + 0x54], eax
mov eax, dword [esp + 0x28]
movzx eax, word [eax + 0x2a]
mov ebx, ecx
and ebx, edx
mov ecx, 0x3f
mov dword [esp + 0x50], ebx
mov dword [esp + 0x14], eax
cmp cx, ax
jge 0x4d9581
mov eax, ecx
jmp 0x4d9582
cwde
mov dword [esp + 0x24], eax
mov dword [esp + 0x18], 0
test eax, eax
jle 0x4d95bf
mov ecx, dword [esp + 0x18]
mov eax, 1
xor edx, edx
call fcn.0050f790
and edx, dword [esp + 0x54]
and eax, ebx
or eax, edx
je 0x4d95b0
inc dword [esp + 0x10]
mov eax, dword [esp + 0x18]
inc eax
mov dword [esp + 0x18], eax
cmp eax, dword [esp + 0x24]
jl 0x4d9592
mov ecx, dword [esp + 0x3c]
and ecx, 0x80000000
xor eax, eax
or eax, ecx
je 0x4d95e0
movsx edx, word [esp + 0x14]
mov eax, dword [esp + 0x10]
lea ecx, [eax + edx - 0x3f]
mov dword [esp + 0x10], ecx
mov eax, dword [esp + 0x10]
mov ecx, dword [ebp + 8]
mov ecx, dword [ecx]
lea edx, [esp + 0x38]
push edx
inc eax
push eax
xor edx, edx
call fcn.004b0550
add esp, 8
mov dword [esp + 0x14], eax
test eax, eax
je 0x4d9e81
mov edx, dword [esp + 0x1c]
mov ecx, dword [esp + 0x28]
mov dword [edx + 0x20], eax
mov edx, dword [ebp + 0xc]
mov dword [eax], str.auto_index
mov dword [eax + 0xc], ecx
mov ebx, dword [edx + 0x14]
xor eax, eax
mov dword [esp + 0x18], eax
mov dword [esp + 0x48], eax
mov dword [esp + 0x4c], eax
cmp ebx, esi
jae 0x4d9767
mov eax, dword [ebx + 0x14]
mov ecx, dword [ebp + 0x10]
cmp eax, dword [ecx + 0x30]
jne 0x4d975a
movzx eax, word [ebx + 0xc]
test al, 0x82
je 0x4d975a
mov edx, ecx
test byte [edx + 0x24], 8
je 0x4d9669
mov ecx, dword [ebx]
test byte [ecx + 4], 1
jne 0x4d9669
test al, al
js 0x4d975a
mov eax, dword [ebx + 0x20]
mov ecx, dword [ebx + 0x24]
and eax, dword [ebp + 0x14]
and ecx, dword [ebp + 0x18]
or eax, ecx
jne 0x4d975a
mov eax, dword [ebx + 0x1c]
test eax, eax
js 0x4d975a
mov ecx, dword [edx + 0x10]
mov edx, dword [ecx + 4]
mov esi, dword [ebx]
add eax, eax
mov al, byte [edx + eax*8 + 0xd]
mov byte [esp + 0x38], al
mov ecx, dword [esp + 0x38]
push ecx
call fcn.004a1040
add esp, 4
test eax, eax
je 0x4d975a
mov ecx, dword [ebx + 0x1c]
cmp ecx, 0x40
jl 0x4d96c0
xor eax, eax
mov edx, accept
jmp 0x4d96cc
mov eax, 1
xor edx, edx
call fcn.0050f790
mov ecx, eax
and ecx, dword [esp + 0x48]
mov esi, edx
and esi, dword [esp + 0x4c]
or ecx, esi
jne 0x4d975a
or dword [esp + 0x4c], edx
or dword [esp + 0x48], eax
mov edx, dword [esp + 0x14]
mov eax, dword [edx + 4]
mov ecx, dword [ebx]
mov esi, dword [esp + 0x18]
mov dx, word [ebx + 0x1c]
mov word [eax + esi*2], dx
mov eax, dword [ecx + 0xc]
mov esi, dword [ecx + 0x10]
mov ecx, 0x100
test dword [eax + 4], ecx
je 0x4d9713
mov ecx, dword [ebp + 8]
push ecx
jmp 0x4d9732
test esi, esi
je 0x4d971c
test dword [esi + 4], ecx
jne 0x4d972c
mov ecx, dword [ebp + 8]
push ecx
call fcn.004a0ec0
add esp, 4
test eax, eax
jne 0x4d973e
mov edx, dword [ebp + 8]
mov eax, esi
push edx
call fcn.004a0ec0
add esp, 4
test eax, eax
je 0x4d9742
mov eax, dword [eax]
jmp 0x4d9747
mov eax, 0x53b968
mov ecx, dword [esp + 0x14]
mov edx, dword [ecx + 0x20]
mov ecx, dword [esp + 0x18]
mov dword [edx + ecx*4], eax
inc ecx
mov dword [esp + 0x18], ecx
add ebx, 0x30
cmp ebx, dword [esp + 0x2c]
jb 0x4d9636
mov ebx, dword [esp + 0x18]
xor esi, esi
cmp dword [esp + 0x24], esi
jle 0x4d97ae
mov eax, 1
xor edx, edx
mov ecx, esi
call fcn.0050f790
and eax, dword [esp + 0x50]
and edx, dword [esp + 0x54]
or eax, edx
je 0x4d97a3
mov eax, dword [esp + 0x14]
mov ecx, dword [eax + 4]
mov word [ecx + ebx*2], si
mov edx, dword [eax + 0x20]
mov dword [edx + ebx*4], 0x53b968
inc ebx
inc esi
cmp esi, dword [esp + 0x24]
jl 0x4d9773
mov dword [esp + 0x18], ebx
mov eax, dword [ebp + 0x10]
mov edx, dword [eax + 0x44]
mov ecx, dword [esp + 0x14]
and edx, 0x80000000
xor eax, eax
or eax, edx
je 0x4d97f2
mov edx, dword [esp + 0x28]
mov eax, 0x3f
cmp ax, word [edx + 0x2a]
jge 0x4d97f2
mov esi, dword [ecx + 4]
mov word [esi + ebx*2], ax
mov esi, dword [ecx + 0x20]
mov dword [esi + ebx*4], 0x53b968
movsx esi, word [edx + 0x2a]
inc eax
inc ebx
cmp eax, esi
jl 0x4d97d3
mov dword [esp + 0x18], ebx
mov eax, dword [esp + 0x14]
mov ecx, dword [eax + 4]
mov esi, dword [ebp + 8]
or edx, 0xffffffff
mov word [ecx + ebx*2], dx
mov eax, dword [eax + 0x20]
mov dword [eax + ebx*4], 0x53b968
mov ecx, dword [esi + 0x28]
mov eax, dword [ebp + 0x1c]
mov dword [eax + 8], ecx
inc dword [esi + 0x28]
mov ecx, dword [esp + 0x10]
mov edx, dword [eax + 8]
mov eax, dword [edi + 0x88]
mov ebx, dword [edi + 0xc]
inc ecx
cmp dword [ebx + 0x30], eax
jg 0x4d9841
push 0
push ecx
push edx
push 0x6b
mov eax, edi
call fcn.0048e3a0
add esp, 0x10
jmp 0x4d9867
lea ebx, [eax + 1]
mov dword [edi + 0x88], ebx
mov ebx, dword [edi + 0x58]
lea eax, [eax + eax*4]
lea eax, [ebx + eax*4]
mov dword [eax + 8], ecx
xor ecx, ecx
mov dword [eax + 4], edx
mov dword [eax + 0xc], ecx
mov dword [eax + 0x10], ecx
mov dword [eax], 0x6b
mov ecx, dword [esp + 0x14]
mov ebx, dword [esi + 8]
push ecx
push esi
call fcn.004b2990
add esp, 8
test eax, eax
je 0x4d98f0
mov ecx, dword [ebx]
cmp byte [ecx + 0x45], 0
je 0x4d98d9
cmp dword [ecx + 0x1c8], 0
jne 0x4d98f0
dec dword [eax]
jne 0x4d98f0
mov ecx, dword [eax + 0xc]
test ecx, ecx
je 0x4d98ce
cmp dword [ecx + 0x1c8], 0
je 0x4d98a8
call fcn.0046f850
jmp 0x4d98f0
cmp eax, dword [ecx + 0x120]
jb 0x4d98ce
cmp eax, dword [ecx + 0x124]
jae 0x4d98ce
mov edx, dword [ecx + 0x11c]
mov dword [eax], edx
dec dword [ecx + 0x108]
mov dword [ecx + 0x11c], eax
jmp 0x4d98f0
push eax
call fcn.0046f7e0
add esp, 4
jmp 0x4d98f0
mov ecx, dword [ebx + 0x88]
mov edx, dword [ebx + 0x58]
lea ecx, [ecx + ecx*4]
lea ecx, [edx + ecx*4 - 0x14]
mov byte [ecx + 1], 0xf7
mov dword [ecx + 0x10], eax
inc dword [esi + 0x3c]
mov ecx, dword [ebp + 0x1c]
movzx eax, byte [ecx + 0x2c]
mov edx, dword [ebp + 0xc]
mov edx, dword [edx]
mov edx, dword [edx + 4]
lea eax, [eax + eax*4]
add eax, eax
test byte [edx + eax*8 + 0x30], 0x10
lea eax, [edx + eax*8 + 8]
mov dword [esp + 0x24], eax
je 0x4d9a01
mov ecx, dword [edi + 0x88]
mov edx, dword [edi + 0xc]
mov ebx, dword [eax + 0x1c]
cmp dword [edx + 0x30], ecx
jg 0x4d993f
push 0
push 0
push 0
push 0x38
mov eax, edi
call fcn.0048e3a0
add esp, 0x10
jmp 0x4d996a
lea eax, [ecx + 1]
mov dword [edi + 0x88], eax
mov eax, dword [edi + 0x58]
lea edx, [ecx + ecx*4]
lea eax, [eax + edx*4]
xor edx, edx
mov word [eax + 2], dx
mov dword [eax + 4], edx
mov dword [eax + 8], edx
mov dword [eax + 0xc], edx
mov dword [eax + 0x10], edx
mov word [eax], 0x38
mov eax, ecx
mov edx, dword [edi + 0xc]
mov dword [esp + 0x34], eax
mov eax, dword [esp + 0x24]
mov ecx, dword [eax + 0x18]
mov eax, dword [edi + 0x88]
cmp dword [edx + 0x30], eax
jg 0x4d9995
push ecx
push 0
push ebx
push 0xf
mov eax, edi
call fcn.0048e3a0
add esp, 0x10
jmp 0x4d99be
lea edx, [eax + 1]
mov dword [edi + 0x88], edx
mov edx, dword [edi + 0x58]
lea eax, [eax + eax*4]
lea eax, [edx + eax*4]
xor edx, edx
mov word [eax + 2], dx
mov dword [eax + 4], ebx
mov dword [eax + 8], edx
mov dword [eax + 0xc], ecx
mov dword [eax + 0x10], edx
mov word [eax], 0xf
mov ecx, dword [edi + 0x88]
mov eax, dword [edi + 0xc]
cmp dword [eax + 0x30], ecx
jg 0x4d99df
push 0
push 0
push ebx
push 0x10
mov eax, edi
call fcn.0048e3a0
add esp, 0x10
jmp 0x4d9a4d
lea edx, [ecx + 1]
mov dword [edi + 0x88], edx
mov edx, dword [edi + 0x58]
lea eax, [ecx + ecx*4]
lea eax, [edx + eax*4]
xor edx, edx
mov word [eax + 2], dx
mov dword [eax + 4], ebx
mov word [eax], 0x10
jmp 0x4d9a40
mov edx, dword [ecx + 4]
mov ecx, dword [edi + 0x88]
mov eax, dword [edi + 0xc]
cmp dword [eax + 0x30], ecx
jg 0x4d9a25
push 0
push 0
push edx
push 0x25
mov eax, edi
call fcn.0048e3a0
add esp, 0x10
jmp 0x4d9a4d
mov ebx, dword [edi + 0x58]
lea eax, [ecx + 1]
mov dword [edi + 0x88], eax
lea eax, [ecx + ecx*4]
lea eax, [ebx + eax*4]
mov dword [eax + 4], edx
mov dword [eax], 0x25
xor edx, edx
mov dword [eax + 8], edx
mov dword [eax + 0xc], edx
mov dword [eax + 0x10], edx
mov eax, ecx
cmp dword [esp + 0x20], 0
mov dword [esp + 0x10], eax
je 0x4d9bd1
mov ecx, dword [edi + 0xc]
mov eax, dword [ecx + 0x44]
lea edx, [eax + 1]
mov dword [ecx + 0x44], edx
lea edx, [eax - 1]
mov dword [esp + 0x2c], ecx
mov dword [esp + 0x30], eax
test eax, edx
jne 0x4d9b9e
mov edx, dword [esp + 0x2c]
mov ebx, dword [edx + 0x48]
mov esi, dword [edx]
lea eax, [eax*8 + 4]
xor ecx, ecx
mov dword [esp + 0x50], eax
test ebx, ebx
jne 0x4d9aa0
push ecx
push eax
mov eax, esi
call fcn.0046fc10
jmp 0x4d9ad7
cmp ebx, dword [esi + 0x120]
jb 0x4d9ace
cmp ebx, dword [esi + 0x124]
jae 0x4d9ace
movzx eax, word [esi + 0x104]
cdq
cmp ecx, edx
ja 0x4d9aca
jb 0x4d9ac4
cmp dword [esp + 0x50], eax
ja 0x4d9aca
mov dword [esp + 0x28], ebx
jmp 0x4d9ade
mov eax, dword [esp + 0x50]
push ecx
push eax
mov eax, ebx
call fcn.0046fd30
mov dword [esp + 0x30], eax
add esp, 8
cmp dword [esp + 0x28], 0
jne 0x4d9b8a
test ebx, ebx
je 0x4d9b8a
test esi, esi
je 0x4d9b32
cmp dword [esi + 0x1c8], 0
je 0x4d9b0c
mov eax, ebx
mov ecx, esi
call fcn.0046f850
jmp 0x4d9b8a
cmp ebx, dword [esi + 0x120]
jb 0x4d9b32
cmp ebx, dword [esi + 0x124]
jae 0x4d9b32
mov eax, dword [esi + 0x11c]
mov dword [ebx], eax
dec dword [esi + 0x108]
mov dword [esi + 0x11c], ebx
jmp 0x4d9b8a
cmp dword [0x56f040], 0
je 0x4d9b80
mov eax, dword [0x15799b8]
test eax, eax
je 0x4d9b4e
push eax
call dword [0x56f098]
add esp, 4
push ebx
call dword [0x56f074]
sub dword [0x1579800], eax
dec dword [0x1579824]
add esp, 4
push ebx
call dword [0x56f06c]
mov eax, dword [0x15799b8]
add esp, 4
test eax, eax
je 0x4d9b8a
push eax
call dword [0x56f0a0]
jmp 0x4d9b87
push ebx
call dword [0x56f06c]
add esp, 4
mov ecx, dword [esp + 0x28]
mov edx, dword [esp + 0x2c]
mov esi, dword [ebp + 8]
mov eax, dword [esp + 0x30]
mov dword [edx + 0x48], ecx
mov ecx, edx
mov ecx, dword [ecx + 0x48]
test ecx, ecx
je 0x4d9bac
mov dword [ecx + eax*4], 0xffffffff
or ecx, 0xffffffff
sub ecx, eax
mov eax, dword [esp + 0x20]
push 0x10
push ecx
push eax
push esi
mov dword [esp + 0x40], ecx
call fcn.004a7900
mov eax, dword [esp + 0x2c]
add esp, 0x10
or dword [eax + 0x24], 0x20000
mov al, byte [esi + 0x13]
test al, al
jne 0x4d9be4
inc dword [esi + 0x2c]
mov ecx, dword [esi + 0x2c]
mov dword [esp + 0x1c], ecx
jmp 0x4d9bf7
dec al
movzx edx, al
mov byte [esi + 0x13], al
mov eax, dword [esi + edx*4 + 0x15c]
mov dword [esp + 0x1c], eax
mov ecx, dword [esp + 0x1c]
mov ebx, dword [ebp + 0x1c]
mov edx, dword [ebx + 4]
mov eax, dword [esp + 0x14]
push 0
push 0
push 0
push 0
push ecx
push edx
push eax
mov eax, esi
call fcn.004b4720
mov edx, dword [edi + 0xc]
mov ecx, dword [ebx + 8]
mov dword [esp + 0x54], eax
mov eax, dword [edi + 0x88]
add esp, 0x1c
cmp dword [edx + 0x30], eax
jg 0x4d9c45
mov eax, dword [esp + 0x1c]
push 0
push eax
push ecx
push 0x7e
mov eax, edi
call fcn.0048e3a0
add esp, 0x10
jmp 0x4d9c6f
lea edx, [eax + 1]
mov dword [edi + 0x88], edx
mov edx, dword [edi + 0x58]
lea eax, [eax + eax*4]
lea eax, [edx + eax*4]
mov dword [eax + 4], ecx
mov ecx, dword [esp + 0x1c]
mov dword [eax + 8], ecx
xor ecx, ecx
mov dword [eax + 0xc], ecx
mov dword [eax + 0x10], ecx
mov dword [eax], 0x7e
mov eax, dword [edi + 0x88]
test eax, eax
jle 0x4d9c89
lea edx, [eax + eax*4]
mov eax, dword [edi + 0x58]
mov ecx, 0x10
mov word [eax + edx*4 - 0x12], cx
cmp dword [esp + 0x20], 0
je 0x4d9caf
mov eax, dword [edi + 0xc]
mov eax, dword [eax + 0x48]
test eax, eax
je 0x4d9caf
mov edx, dword [esp + 0x30]
lea ecx, [edx*4 + 4]
mov edx, dword [edi + 0x88]
sub eax, ecx
mov dword [eax], edx
mov eax, dword [esp + 0x24]
test byte [eax + 0x28], 0x10
je 0x4d9d72
mov eax, dword [esp + 0x34]
test eax, eax
jns 0x4d9ccc
mov eax, dword [edi + 0x88]
dec eax
mov ecx, dword [edi]
cmp byte [ecx + 0x45], 0
je 0x4d9cdb
mov eax, 0x573b6c
jmp 0x4d9ce4
lea edx, [eax + eax*4]
mov eax, dword [edi + 0x58]
lea eax, [eax + edx*4]
mov edx, dword [esp + 0x38]
add edx, dword [esp + 0x18]
push 1
mov dword [eax + 8], edx
mov eax, dword [esp + 0x28]
mov ecx, dword [eax + 0x20]
mov edx, dword [ebx + 4]
push ecx
push edx
mov edx, dword [esp + 0x1c]
mov eax, esi
call fcn.004d91d0
mov eax, dword [edi + 0x88]
mov ecx, dword [edi + 0xc]
add esp, 0xc
cmp dword [ecx + 0x30], eax
jg 0x4d9d3b
mov edx, dword [esp + 0x10]
push 0
push edx
push 0
push 0xd
mov eax, edi
call fcn.0048e3a0
mov eax, dword [esp + 0x34]
add esp, 0x10
and dword [eax + 0x28], 0xffffffef
jmp 0x4d9dc0
lea ecx, [eax + 1]
mov dword [edi + 0x88], ecx
lea edx, [eax + eax*4]
mov eax, dword [edi + 0x58]
lea eax, [eax + edx*4]
mov edx, dword [esp + 0x10]
xor ecx, ecx
mov word [eax + 2], cx
mov dword [eax + 4], ecx
mov dword [eax + 8], edx
mov dword [eax + 0xc], ecx
mov dword [eax + 0x10], ecx
mov word [eax], 0xd
mov eax, dword [esp + 0x24]
and dword [eax + 0x28], 0xffffffef
jmp 0x4d9dc0
mov ecx, dword [esp + 0x10]
mov edx, dword [ebx + 4]
mov eax, dword [edi + 0x88]
mov ebx, dword [edi + 0xc]
inc ecx
cmp dword [ebx + 0x30], eax
jg 0x4d9d9a
push 0
push ecx
push edx
push 7
mov eax, edi
call fcn.0048e3a0
add esp, 0x10
jmp 0x4d9dc0
lea ebx, [eax + 1]
mov dword [edi + 0x88], ebx
mov ebx, dword [edi + 0x58]
lea eax, [eax + eax*4]
lea eax, [ebx + eax*4]
mov dword [eax + 8], ecx
xor ecx, ecx
mov dword [eax + 4], edx
mov dword [eax + 0xc], ecx
mov dword [eax + 0x10], ecx
mov dword [eax], 7
mov eax, dword [edi + 0x88]
test eax, eax
jle 0x4d9dda
mov edx, dword [edi + 0x58]
lea ecx, [eax + eax*4]
mov eax, 3
mov word [edx + ecx*4 - 0x12], ax
mov eax, dword [esp + 0x10]
mov ecx, dword [edi + 0x88]
test eax, eax
jns 0x4d9deb
lea eax, [ecx - 1]
mov edx, dword [edi]
cmp byte [edx + 0x45], 0
je 0x4d9dfa
mov eax, 0x573b6c
jmp 0x4d9e03
mov edx, dword [edi + 0x58]
lea eax, [eax + eax*4]
lea eax, [edx + eax*4]
cmp dword [esp + 0x1c], 0
mov dword [eax + 8], ecx
je 0x4d9e48
mov dl, byte [esi + 0x13]
cmp dl, 8
jae 0x4d9e48
xor eax, eax
lea ecx, [esi + 0x94]
cmp byte [esi + 0x19], al
jbe 0x4d9e37
mov ebx, dword [esp + 0x1c]
cmp dword [ecx + 0xc], ebx
je 0x4d9e6f
movzx ebx, byte [esi + 0x19]
inc eax
add ecx, 0x14
cmp eax, ebx
jl 0x4d9e22
mov ecx, dword [esp + 0x1c]
movzx eax, dl
mov dword [esi + eax*4 + 0x15c], ecx
inc byte [esi + 0x13]
mov eax, esi
call fcn.004a5cb0
mov eax, dword [esp + 0x44]
mov ecx, dword [edi + 0x88]
test eax, eax
jns 0x4d9e60
lea eax, [ecx - 1]
mov edx, dword [edi]
cmp byte [edx + 0x45], 0
je 0x4d9e75
mov eax, 0x573b6c
jmp 0x4d9e7e
mov byte [ecx + 6], 1
jmp 0x4d9e48
mov edx, dword [edi + 0x58]
lea eax, [eax + eax*4]
lea eax, [edx + eax*4]
mov dword [eax + 8], ecx
mov eax, dword [esp + 0x20]
test eax, eax
je 0x4d9e98
push eax
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
push ecx
call fcn.004a1f00
add esp, 8
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret