Function at 0x4d8820
Capabilities:
Enumerate pe sections
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x8c
mov eax, ecx
mov dword [esp + 0x3c], 0
push ebx
push esi
mov esi, edx
mov dword [esp + 0x1c], eax
mov ecx, dword [eax]
mov ebx, dword [eax + 8]
mov dword [esp + 0x3c], ecx
mov ecx, dword [eax + 0x38]
dec ecx
mov dword [esp + 0x10], esi
mov dword [esp + 0x2c], ecx
dec ecx
mov dword [eax + 0x38], ecx
mov al, byte [esi + 4]
mov dword [esp + 0x38], ecx
mov ecx, dword [esi + 0x34]
mov dword [esp + 0x18], 0
mov dword [esp + 0x48], ebx
mov byte [esp + 0xf], al
mov dword [esp + 0x34], ecx
push edi
mov edi, dword [esi + 0x30]
mov edx, dword [edi]
mov dword [esp + 0x34], edx
cmp al, 0x80
je 0x4d896a
mov eax, dword [esp + 0x40]
mov esi, 1
cmp byte [eax + 0x51], 0
jne 0x4d8966
lea eax, [edx + edx*2]
shl eax, 3
mov dword [esp + 0x2c], eax
mov eax, dword [esp + 0x14]
nop dword [eax + eax]
mov eax, dword [eax]
cmp esi, dword [eax]
jg 0x4d8966
xor ecx, ecx
test edx, edx
jle 0x4d88de
mov ebx, dword [esp + 0x34]
lea edx, [edi + 0x18]
movzx eax, word [edx]
cmp eax, esi
je 0x4d88d6
inc ecx
add edx, 0x18
cmp ecx, ebx
jl 0x4d88c7
mov ebx, dword [esp + 0x4c]
mov edx, dword [esp + 0x34]
cmp ecx, edx
jne 0x4d8953
mov ecx, dword [esp + 0x40]
lea eax, [esp + 0x54]
push 0
push eax
mov edx, 0x93
mov dword [esp + 0x5c], 0
mov dword [esp + 0x60], 0
call fcn.004b0d60
add esp, 8
test eax, eax
je 0x4d89cc
mov ecx, dword [esp + 0x20]
mov edx, edi
or dword [eax + 4], 0x400
push eax
mov dword [eax + 8], esi
call fcn.004b2190
mov edx, dword [esp + 0x38]
mov edi, eax
mov eax, dword [esp + 0x18]
add esp, 4
mov dword [eax + 0x30], edi
test edi, edi
je 0x4d8957
mov ecx, dword [esp + 0x2c]
inc edx
mov dword [esp + 0x34], edx
mov word [ecx + edi + 0x18], si
add ecx, 0x18
mov dword [esp + 0x2c], ecx
jmp 0x4d8957
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x40]
inc esi
cmp byte [ecx + 0x51], 0
je 0x4d88b0
mov esi, dword [esp + 0x14]
mov ecx, dword [esp + 0x40]
lea eax, [edx*4 + 4]
push 0
push eax
call fcn.0047d040
add esp, 8
mov dword [esp + 0x60], eax
test eax, eax
je 0x4d89d8
mov esi, dword [esp + 0x34]
mov ecx, 1
mov dword [eax], esi
cmp esi, ecx
jl 0x4d89b3
lea edx, [edi + 0x18]
mov ebx, eax
nop dword [eax]
movzx eax, word [edx]
lea edx, [edx + 0x18]
dec eax
mov dword [ebx + ecx*4], eax
inc ecx
cmp ecx, esi
jle 0x4d89a0
mov ebx, dword [esp + 0x4c]
mov esi, dword [esp + 0x14]
mov edx, esi
push ecx
mov ecx, dword [esp + 0x24]
call fcn.004d7480
add esp, 4
mov dword [esp + 0x64], eax
jmp 0x4d89e0
mov eax, 7
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov dword [esp + 0x64], 0
mov dword [esi + 0x30], edi
mov edx, edi
mov edi, dword [esp + 0x20]
push 0
mov ecx, dword [edi]
call fcn.004b1940
mov ecx, dword [esp + 0x3c]
add esp, 4
cmp byte [esp + 0x13], 0x80
mov dword [ecx + 0x30], eax
jne 0x4d8a10
mov dword [esp + 0x2c], 0
jmp 0x4d8b09
mov eax, dword [esi]
mov ecx, dword [esp + 0x20]
mov edi, dword [eax]
mov eax, dword [ecx + 0x2c]
mov dword [esp + 0x54], edi
lea edx, [eax + 1]
inc eax
add eax, edi
mov dword [esp + 0x2c], edx
mov dword [ecx + 0x2c], eax
mov ecx, dword [ebx + 0x6c]
cmp dword [ebx + 0x70], ecx
jg 0x4d8a4a
push 0
push edx
push 0
mov edx, 0x46
mov ecx, ebx
call fcn.0049bf40
add esp, 0xc
jmp 0x4d8a7d
mov esi, dword [esp + 0x14]
lea eax, [ecx + 1]
mov dword [ebx + 0x6c], eax
lea ecx, [ecx + ecx*4]
mov eax, dword [ebx + 0x68]
mov dword [eax + ecx*4], 0x46
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 ecx, dword [esp + 0x40]
mov edx, edi
push 1
call fcn.004d6010
add esp, 4
mov dword [esp + 0x1c], eax
test eax, eax
je 0x4d8b05
xor esi, esi
test edi, edi
jle 0x4d8b01
mov ebx, dword [esp + 0x14]
lea ecx, [eax + 0x14]
xor edi, edi
mov dword [esp + 0x18], ecx
mov edx, dword [ebx + 0x34]
test edx, edx
je 0x4d8ac6
mov ecx, dword [esp + 0x20]
push esi
call fcn.004d7440
mov ecx, dword [esp + 0x1c]
add esp, 4
test eax, eax
jne 0x4d8adf
jmp 0x4d8ac8
xor eax, eax
mov edx, dword [ebx]
cmp esi, dword [edx]
jge 0x4d8adf
mov edx, dword [edx + edi + 4]
mov ecx, dword [esp + 0x20]
call fcn.004b0350
mov ecx, dword [esp + 0x18]
mov dword [ecx], eax
add edi, 0x18
mov eax, dword [esp + 0x1c]
add ecx, 4
mov dword [esp + 0x18], ecx
mov eax, dword [eax + 0x10]
mov byte [esi + eax], 0
inc esi
cmp esi, dword [esp + 0x54]
jl 0x4d8aa8
mov ebx, dword [esp + 0x4c]
mov esi, dword [esp + 0x14]
mov edi, dword [esp + 0x20]
mov eax, dword [esp + 0x38]
mov edx, esi
mov dword [esi + 0x34], 0
mov ecx, edi
push str.ORDER
mov dword [eax + 0x38], 0
push dword [esi + 0x30]
call fcn.004af7c0
mov eax, dword [esp + 0x40]
add esp, 8
cmp dword [eax + 0x34], 0
jne 0x4d8b4d
push str.ORDER
push dword [eax + 0x30]
mov edx, eax
mov ecx, edi
call fcn.004af7c0
add esp, 8
push dword [esp + 0x30]
mov edx, esi
mov ecx, edi
call fcn.004d7300
add esp, 4
cmp dword [esi + 0xc], 0
je 0x4d8c2a
cmp byte [esp + 0x13], 0x80
jne 0x4d8c2a
mov esi, dword [edi + 0x2c]
inc esi
lea eax, [esi + 1]
mov dword [edi + 0x2c], eax
mov edi, dword [esp + 0x14]
mov dword [esp + 0x18], eax
mov edx, dword [edi + 0x10]
test edx, edx
je 0x4d8b8e
inc edx
jmp 0x4d8b91
mov edx, dword [edi + 0xc]
mov ecx, dword [ebx + 0x6c]
cmp dword [ebx + 0x70], ecx
jg 0x4d8bae
push 0
push esi
push edx
mov edx, 0x4e
mov ecx, ebx
call fcn.0049bf40
add esp, 0xc
jmp 0x4d8bd9
lea eax, [ecx + 1]
mov dword [ebx + 0x6c], eax
lea ecx, [ecx + ecx*4]
mov eax, dword [ebx + 0x68]
mov dword [eax + ecx*4], 0x4e
mov dword [eax + ecx*4 + 4], edx
mov dword [eax + ecx*4 + 8], esi
mov dword [eax + ecx*4 + 0xc], 0
mov dword [eax + ecx*4 + 0x10], 0
mov ecx, dword [ebx + 0x6c]
cmp dword [ebx + 0x70], ecx
jg 0x4d8bf9
push 0
push dword [esp + 0x1c]
mov edx, 0x4e
mov ecx, ebx
push esi
call fcn.0049bf40
add esp, 0xc
jmp 0x4d8c38
mov edx, dword [esp + 0x18]
lea eax, [ecx + 1]
mov dword [ebx + 0x6c], eax
lea ecx, [ecx + ecx*4]
mov eax, dword [ebx + 0x68]
mov dword [eax + ecx*4], 0x4e
mov dword [eax + ecx*4 + 4], esi
mov dword [eax + ecx*4 + 8], edx
mov dword [eax + ecx*4 + 0xc], 0
mov dword [eax + ecx*4 + 0x10], 0
jmp 0x4d8c38
mov edi, dword [esp + 0x14]
xor esi, esi
mov dword [esp + 0x18], 0
mov edx, dword [edi + 0x3c]
test edx, edx
je 0x4d8c48
mov ecx, dword [esp + 0x40]
call fcn.004b1380
mov ecx, dword [esp + 0x20]
mov dword [edi + 0x3c], 0
mov byte [esp + 0x80], 0xd
mov dword [esp + 0x90], 0
mov edx, dword [ecx + 0x2c]
inc edx
mov dword [esp + 0x88], 0
mov dword [esp + 0x28], edx
mov dword [esp + 0x84], edx
mov dword [esp + 0x8c], 0
lea eax, [edx + 1]
mov byte [esp + 0x68], 0xd
mov dword [esp + 0x24], eax
add eax, 2
mov dword [esp + 0x44], eax
mov dword [ecx + 0x2c], eax
lea eax, [edx + 1]
mov dword [esp + 0x6c], eax
movzx eax, byte [edi + 4]
mov dword [esp + 0x78], 0
mov dword [esp + 0x70], 0
mov dword [esp + 0x74], 0
sub eax, 0x80
je 0x4d8cea
sub eax, 1
je 0x4d8ce3
sub eax, 1
je 0x4d8cdc
mov eax, str.UNION
jmp 0x4d8cef
mov eax, str.INTERSECT
jmp 0x4d8cef
mov eax, str.EXCEPT
jmp 0x4d8cef
mov eax, str.UNION_ALL
push eax
push str.MERGE___s_
push 1
push ecx
call fcn.0049c3c0
mov edi, dword [ebx + 0x6c]
add esp, 0x10
lea edx, [edi + 1]
cmp dword [ebx + 0x70], edi
jg 0x4d8d25
push edx
push 0
push dword [esp + 0x30]
mov edx, 0xd
mov ecx, ebx
call fcn.0049bf40
add esp, 0xc
mov edi, eax
jmp 0x4d8d55
mov eax, dword [ebx + 0x68]
lea ecx, [edi + edi*4]
mov dword [ebx + 0x6c], edx
mov ebx, dword [esp + 0x28]
mov dword [eax + ecx*4 + 4], ebx
mov ebx, dword [esp + 0x4c]
mov dword [eax + ecx*4], 0xd
mov dword [eax + ecx*4 + 8], 0
mov dword [eax + ecx*4 + 0xc], edx
mov dword [eax + ecx*4 + 0x10], 0
mov eax, dword [esp + 0x38]
push str.LEFT
push 1
mov dword [eax + 0xc], esi
mov esi, dword [esp + 0x28]
push esi
call fcn.0049c3c0
mov edx, dword [esp + 0x44]
lea eax, [esp + 0x8c]
add esp, 0xc
mov ecx, esi
push eax
call fcn.004dbbd0
mov ecx, dword [ebx + 0x6c]
add esp, 4
cmp dword [ebx + 0x70], ecx
jg 0x4d8da7
push 0
push 0
push dword [esp + 0x30]
mov edx, 0x43
mov ecx, ebx
call fcn.0049bf40
add esp, 0xc
jmp 0x4d8dda
mov edx, dword [esp + 0x28]
lea eax, [ecx + 1]
mov dword [ebx + 0x6c], eax
lea ecx, [ecx + ecx*4]
mov eax, dword [ebx + 0x68]
mov dword [eax + ecx*4], 0x43
mov dword [eax + ecx*4 + 4], edx
mov dword [eax + ecx*4 + 8], 0
mov dword [eax + ecx*4 + 0xc], 0
mov dword [eax + ecx*4 + 0x10], 0
mov eax, dword [ebx + 0xc]
mov byte [eax + 0x13], 0
mov eax, dword [ebx + 0xc]
mov dword [eax + 0x1c], 0
mov eax, dword [ebx]
mov edx, dword [ebx + 0x6c]
cmp byte [eax + 0x51], 0
je 0x4d8dfd
mov eax, 0x647cc8
jmp 0x4d8e0e
test edi, edi
lea eax, [edx - 1]
cmovns eax, edi
lea ecx, [eax + eax*4]
mov eax, dword [ebx + 0x68]
lea eax, [eax + ecx*4]
mov dword [eax + 8], edx
mov eax, dword [ebx + 0x6c]
mov dword [esp + 0x5c], eax
lea esi, [eax + 1]
cmp dword [ebx + 0x70], eax
jg 0x4d8e3c
push esi
push 0
push dword [esp + 0x2c]
mov edx, 0xd
mov ecx, ebx
call fcn.0049bf40
add esp, 0xc
mov dword [esp + 0x5c], eax
jmp 0x4d8e68
mov edx, dword [esp + 0x24]
lea ecx, [eax + eax*4]
mov eax, dword [ebx + 0x68]
mov dword [ebx + 0x6c], esi
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], esi
mov dword [eax + ecx*4 + 0x10], 0
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x18]
push str.RIGHT
push 1
mov edi, dword [eax + 0xc]
mov esi, dword [eax + 0x10]
push dword [esp + 0x28]
mov dword [eax + 0xc], ecx
mov dword [eax + 0x10], 0
call fcn.0049c3c0
mov edx, dword [esp + 0x20]
lea eax, [esp + 0x74]
mov ecx, dword [esp + 0x2c]
add esp, 0xc
push eax
call fcn.004dbbd0
mov eax, dword [esp + 0x18]
add esp, 4
mov dword [eax + 0xc], edi
mov edi, eax
mov dword [edi + 0x10], esi
mov ecx, dword [ebx + 0x6c]
cmp dword [ebx + 0x70], ecx
jg 0x4d8ed5
push 0
push 0
push dword [esp + 0x2c]
mov edx, 0x43
mov ecx, ebx
call fcn.0049bf40
add esp, 0xc
jmp 0x4d8f08
mov edx, dword [esp + 0x24]
lea eax, [ecx + 1]
mov dword [ebx + 0x6c], eax
lea ecx, [ecx + ecx*4]
mov eax, dword [ebx + 0x68]
mov dword [eax + ecx*4], 0x43
mov dword [eax + ecx*4 + 4], edx
mov dword [eax + ecx*4 + 8], 0
mov dword [eax + ecx*4 + 0xc], 0
mov dword [eax + ecx*4 + 0x10], 0
mov eax, dword [ebx + 0xc]
mov edx, edi
push dword [esp + 0x30]
mov esi, dword [ebp + 8]
push dword [esp + 0x20]
mov ecx, dword [esp + 0x28]
push dword [esp + 0x34]
mov byte [eax + 0x13], 0
mov eax, dword [ebx + 0xc]
mov dword [eax + 0x1c], 0
mov eax, dword [esp + 0x30]
inc eax
push eax
lea eax, [esp + 0x90]
push esi
push eax
call fcn.004d8460
mov dword [esp + 0x30], eax
add esp, 0x18
mov al, byte [esp + 0x13]
cmp al, 0x80
je 0x4d8f55
cmp al, 0x7f
jne 0x4d8f7d
push dword [esp + 0x30]
mov ecx, dword [esp + 0x24]
lea eax, [esp + 0x6c]
push dword [esp + 0x20]
mov edx, edi
push dword [esp + 0x34]
push dword [esp + 0x50]
push esi
push eax
call fcn.004d8460
add esp, 0x18
mov dword [esp + 0x48], eax
mov edx, dword [esp + 0x1c]
test edx, edx
je 0x4d8fca
add dword [edx], 0xffffffff
jne 0x4d8fca
mov ecx, dword [edx + 0xc]
test ecx, ecx
je 0x4d8fc1
cmp dword [ecx + 0x1e8], 0
je 0x4d8fa1
call fcn.0047cce0
jmp 0x4d8fca
cmp edx, dword [ecx + 0x138]
jb 0x4d8fc1
cmp edx, dword [ecx + 0x13c]
jae 0x4d8fc1
mov eax, dword [ecx + 0x134]
mov dword [edx], eax
mov dword [ecx + 0x134], edx
jmp 0x4d8fca
push edx
call fcn.0047cc70
add esp, 4
mov al, byte [esp + 0x13]
cmp al, 0x81
je 0x4d91a1
cmp al, 0x82
je 0x4d91a1
mov esi, dword [ebx + 0x6c]
mov dword [esp + 0x1c], esi
cmp dword [ebx + 0x70], esi
jg 0x4d900b
push 0
push dword [esp + 0x4c]
mov edx, 0xc
mov ecx, ebx
push dword [esp + 0x4c]
call fcn.0049bf40
mov esi, eax
add esp, 0xc
mov dword [esp + 0x1c], esi
jmp 0x4d903e
mov edx, dword [esp + 0x44]
lea eax, [esi + 1]
mov dword [ebx + 0x6c], eax
lea ecx, [esi + esi*4]
mov eax, dword [ebx + 0x68]
mov dword [eax + ecx*4 + 4], edx
mov edx, dword [esp + 0x48]
mov dword [eax + ecx*4], 0xc
mov dword [eax + ecx*4 + 8], edx
mov dword [eax + ecx*4 + 0xc], 0
mov dword [eax + ecx*4 + 0x10], 0
mov edx, dword [ebx + 0x6c]
mov dword [esp + 0x2c], edx
cmp dword [ebx + 0x70], edx
jg 0x4d9069
push 0
push dword [esp + 0x34]
mov edx, 0xe
mov ecx, ebx
push dword [esp + 0x2c]
call fcn.0049bf40
add esp, 0xc
mov dword [esp + 0x2c], eax
jmp 0x4d909c
lea eax, [edx + 1]
mov dword [ebx + 0x6c], eax
lea ecx, [edx + edx*4]
mov eax, dword [ebx + 0x68]
mov edx, dword [esp + 0x24]
mov dword [eax + ecx*4 + 4], edx
mov edx, dword [esp + 0x30]
mov dword [eax + ecx*4], 0xe
mov dword [eax + ecx*4 + 8], edx
mov dword [eax + ecx*4 + 0xc], 0
mov dword [eax + ecx*4 + 0x10], 0
mov ecx, dword [ebx + 0x6c]
cmp dword [ebx + 0x70], ecx
jg 0x4d90ba
push 0
push esi
push 0
mov edx, 0xb
mov ecx, ebx
call fcn.0049bf40
add esp, 0xc
jmp 0x4d90e9
lea eax, [ecx + 1]
mov dword [ebx + 0x6c], eax
lea ecx, [ecx + ecx*4]
mov eax, dword [ebx + 0x68]
mov dword [eax + ecx*4], 0xb
mov dword [eax + ecx*4 + 4], 0
mov dword [eax + ecx*4 + 8], esi
mov dword [eax + ecx*4 + 0xc], 0
mov dword [eax + ecx*4 + 0x10], 0
mov eax, dword [esp + 0x38]
movzx edi, word [edi + 6]
movsx ecx, di
movzx esi, word [eax + 6]
movsx edx, si
cmp di, si
jl 0x4d9152
lea eax, [edx + 0x31]
cmp ecx, eax
jle 0x4d911a
mov eax, edi
mov edi, dword [esp + 0x14]
mov word [edi + 6], ax
mov eax, dword [esp + 0x1c]
jmp 0x4d91af
lea eax, [edx + 0x1f]
cmp ecx, eax
jle 0x4d9135
lea eax, [edi + 1]
mov edi, dword [esp + 0x14]
movzx eax, ax
mov word [edi + 6], ax
mov eax, dword [esp + 0x1c]
jmp 0x4d91af
sub ecx, edx
movzx eax, byte [ecx + str._n_n_t_t_b_b_a_a_a]
add ax, di
mov edi, dword [esp + 0x14]
movzx eax, ax
mov word [edi + 6], ax
mov eax, dword [esp + 0x1c]
jmp 0x4d91af
lea eax, [ecx + 0x31]
cmp edx, eax
jle 0x4d9169
mov edi, dword [esp + 0x14]
mov eax, esi
mov word [edi + 6], ax
mov eax, dword [esp + 0x1c]
jmp 0x4d91af
lea eax, [ecx + 0x1f]
cmp edx, eax
jle 0x4d9184
mov edi, dword [esp + 0x14]
lea eax, [esi + 1]
movzx eax, ax
mov word [edi + 6], ax
mov eax, dword [esp + 0x1c]
jmp 0x4d91af
mov edi, dword [esp + 0x14]
sub edx, ecx
movzx eax, byte [edx + str._n_n_t_t_b_b_a_a_a]
add ax, si
movzx eax, ax
mov word [edi + 6], ax
mov eax, dword [esp + 0x1c]
jmp 0x4d91af
mov ecx, dword [esp + 0x30]
mov eax, ecx
mov dword [esp + 0x1c], eax
mov dword [esp + 0x2c], ecx
cmp byte [esp + 0x13], 0x82
jne 0x4d9203
mov dword [esp + 0x50], eax
mov eax, dword [esp + 0x38]
movzx eax, word [eax + 6]
cmp word [edi + 6], ax
jle 0x4d91cc
mov word [edi + 6], ax
mov edi, dword [esp + 0x18]
mov esi, dword [ebx + 0x6c]
mov dword [esp + 0x18], esi
cmp dword [ebx + 0x70], esi
jg 0x4d930e
mov eax, dword [esp + 0x24]
mov edx, 0xc
push 0
inc eax
mov ecx, ebx
push edi
push eax
call fcn.0049bf40
mov esi, eax
add esp, 0xc
mov dword [esp + 0x18], esi
jmp 0x4d9342
mov esi, dword [ebx + 0x6c]
mov edi, dword [esp + 0x18]
mov dword [esp + 0x50], esi
cmp dword [ebx + 0x70], esi
jg 0x4d9233
mov eax, dword [esp + 0x24]
mov edx, 0xc
push 0
inc eax
mov ecx, ebx
push edi
push eax
call fcn.0049bf40
mov esi, eax
add esp, 0xc
mov dword [esp + 0x50], esi
jmp 0x4d9263
mov edx, dword [esp + 0x24]
lea eax, [esi + 1]
mov dword [ebx + 0x6c], eax
lea ecx, [esi + esi*4]
mov eax, dword [ebx + 0x68]
inc edx
mov dword [eax + ecx*4], 0xc
mov dword [eax + ecx*4 + 4], edx
mov dword [eax + ecx*4 + 8], edi
mov dword [eax + ecx*4 + 0xc], 0
mov dword [eax + ecx*4 + 0x10], 0
mov ecx, dword [ebx + 0x6c]
cmp dword [ebx + 0x70], ecx
jg 0x4d9286
push 0
push dword [esp + 0x34]
mov edx, 0xe
mov ecx, ebx
push dword [esp + 0x30]
call fcn.0049bf40
add esp, 0xc
jmp 0x4d92b9
mov edx, dword [esp + 0x28]
lea eax, [ecx + 1]
mov dword [ebx + 0x6c], eax
lea ecx, [ecx + ecx*4]
mov eax, dword [ebx + 0x68]
mov dword [eax + ecx*4 + 4], edx
mov edx, dword [esp + 0x30]
mov dword [eax + ecx*4], 0xe
mov dword [eax + ecx*4 + 8], edx
mov dword [eax + ecx*4 + 0xc], 0
mov dword [eax + ecx*4 + 0x10], 0
mov ecx, dword [ebx + 0x6c]
cmp dword [ebx + 0x70], ecx
jg 0x4d92da
push 0
push esi
push 0
mov edx, 0xb
mov ecx, ebx
call fcn.0049bf40
add esp, 0xc
jmp 0x4d91d0
lea eax, [ecx + 1]
mov dword [ebx + 0x6c], eax
lea ecx, [ecx + ecx*4]
mov eax, dword [ebx + 0x68]
mov dword [eax + ecx*4], 0xb
mov dword [eax + ecx*4 + 4], 0
mov dword [eax + ecx*4 + 8], esi
mov dword [eax + ecx*4 + 0xc], 0
mov dword [eax + ecx*4 + 0x10], 0
jmp 0x4d91d0
mov edx, dword [esp + 0x24]
lea eax, [esi + 1]
mov dword [ebx + 0x6c], eax
lea ecx, [esi + esi*4]
mov eax, dword [ebx + 0x68]
inc edx
mov esi, dword [esp + 0x18]
mov dword [eax + ecx*4], 0xc
mov dword [eax + ecx*4 + 4], edx
mov dword [eax + ecx*4 + 8], edi
mov dword [eax + ecx*4 + 0xc], 0
mov dword [eax + ecx*4 + 0x10], 0
mov ecx, dword [ebx + 0x6c]
mov edi, dword [esp + 0x1c]
cmp dword [ebx + 0x70], ecx
jg 0x4d9366
push 0
push edi
push dword [esp + 0x30]
mov edx, 0xe
mov ecx, ebx
call fcn.0049bf40
add esp, 0xc
jmp 0x4d9395
mov edx, dword [esp + 0x28]
lea eax, [ecx + 1]
mov dword [ebx + 0x6c], eax
lea ecx, [ecx + ecx*4]
mov eax, dword [ebx + 0x68]
mov dword [eax + ecx*4], 0xe
mov dword [eax + ecx*4 + 4], edx
mov dword [eax + ecx*4 + 8], edi
mov dword [eax + ecx*4 + 0xc], 0
mov dword [eax + ecx*4 + 0x10], 0
mov ecx, dword [ebx + 0x6c]
cmp dword [ebx + 0x70], ecx
jg 0x4d93b6
push 0
push dword [esp + 0x40]
mov edx, 0xb
mov ecx, ebx
push 0
call fcn.0049bf40
add esp, 0xc
jmp 0x4d93e9
mov edx, dword [esp + 0x3c]
lea eax, [ecx + 1]
mov dword [ebx + 0x6c], eax
lea ecx, [ecx + ecx*4]
mov eax, dword [ebx + 0x68]
mov dword [eax + ecx*4], 0xb
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 al, byte [esp + 0x13]
cmp al, 0x80
jne 0x4d93fa
mov dword [esp + 0x1c], esi
jmp 0x4d94bb
cmp al, 0x82
jne 0x4d940c
mov dword [esp + 0x1c], esi
inc esi
mov dword [esp + 0x18], esi
jmp 0x4d94bb
mov edx, dword [ebx + 0x6c]
mov dword [esp + 0x1c], edx
cmp dword [ebx + 0x70], edx
jg 0x4d9434
push 0
push edi
push dword [esp + 0x30]
mov edx, 0xe
mov ecx, ebx
call fcn.0049bf40
add esp, 0xc
mov dword [esp + 0x1c], eax
jmp 0x4d9463
lea eax, [edx + 1]
mov dword [ebx + 0x6c], eax
lea ecx, [edx + edx*4]
mov eax, dword [ebx + 0x68]
mov edx, dword [esp + 0x28]
mov dword [eax + ecx*4], 0xe
mov dword [eax + ecx*4 + 4], edx
mov dword [eax + ecx*4 + 8], edi
mov dword [eax + ecx*4 + 0xc], 0
mov dword [eax + ecx*4 + 0x10], 0
mov ecx, dword [ebx + 0x6c]
cmp dword [ebx + 0x70], ecx
jg 0x4d9484
push 0
push dword [esp + 0x40]
mov edx, 0xb
mov ecx, ebx
push 0
call fcn.0049bf40
add esp, 0xc
jmp 0x4d94b7
mov edx, dword [esp + 0x3c]
lea eax, [ecx + 1]
mov dword [ebx + 0x6c], eax
lea ecx, [ecx + ecx*4]
mov eax, dword [ebx + 0x68]
mov dword [eax + ecx*4], 0xb
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 al, byte [esp + 0x13]
mov ecx, dword [ebx + 0x6c]
mov dword [esp + 0x54], ecx
cmp al, 0x80
je 0x4d94ca
cmp al, 0x7f
jne 0x4d951d
cmp dword [ebx + 0x70], ecx
jg 0x4d94ea
push 0
push dword [esp + 0x4c]
mov edx, 0xc
mov ecx, ebx
push dword [esp + 0x4c]
call fcn.0049bf40
add esp, 0xc
jmp 0x4d951d
mov edx, dword [esp + 0x44]
lea eax, [ecx + 1]
mov dword [ebx + 0x6c], eax
lea ecx, [ecx + ecx*4]
mov eax, dword [ebx + 0x68]
mov dword [eax + ecx*4 + 4], edx
mov edx, dword [esp + 0x48]
mov dword [eax + ecx*4], 0xc
mov dword [eax + ecx*4 + 8], edx
mov dword [eax + ecx*4 + 0xc], 0
mov dword [eax + ecx*4 + 0x10], 0
mov ecx, dword [ebx + 0x6c]
mov esi, dword [esp + 0x50]
mov edi, dword [esp + 0x24]
cmp dword [ebx + 0x70], ecx
jg 0x4d9542
push 0
push esi
push edi
mov edx, 0xe
mov ecx, ebx
call fcn.0049bf40
add esp, 0xc
jmp 0x4d956d
lea eax, [ecx + 1]
mov dword [ebx + 0x6c], eax
lea ecx, [ecx + ecx*4]
mov eax, dword [ebx + 0x68]
mov dword [eax + ecx*4], 0xe
mov dword [eax + ecx*4 + 4], edi
mov dword [eax + ecx*4 + 8], esi
mov dword [eax + ecx*4 + 0xc], 0
mov dword [eax + ecx*4 + 0x10], 0
mov ecx, dword [ebx + 0x6c]
cmp dword [ebx + 0x70], ecx
jg 0x4d958e
push 0
push dword [esp + 0x40]
mov edx, 0xb
mov ecx, ebx
push 0
call fcn.0049bf40
add esp, 0xc
jmp 0x4d95c1
mov edx, dword [esp + 0x3c]
lea eax, [ecx + 1]
mov dword [ebx + 0x6c], eax
lea ecx, [ecx + ecx*4]
mov eax, dword [ebx + 0x68]
mov dword [eax + ecx*4], 0xb
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 [ebx]
mov edx, dword [ebx + 0x6c]
cmp byte [eax + 0x51], 0
je 0x4d95d3
mov eax, 0x647cc8
jmp 0x4d95e8
mov ecx, dword [esp + 0x5c]
lea eax, [edx - 1]
test ecx, ecx
cmovns eax, ecx
lea ecx, [eax + eax*4]
mov eax, dword [ebx + 0x68]
lea eax, [eax + ecx*4]
mov dword [eax + 8], edx
mov ecx, dword [ebx + 0x6c]
cmp dword [ebx + 0x70], ecx
jg 0x4d960f
mov edx, dword [esp + 0x2c]
mov ecx, ebx
push 0
push edx
push dword [esp + 0x30]
mov edx, 0xe
call fcn.0049bf40
add esp, 0xc
jmp 0x4d9642
mov edx, dword [esp + 0x28]
lea eax, [ecx + 1]
mov dword [ebx + 0x6c], eax
lea ecx, [ecx + ecx*4]
mov eax, dword [ebx + 0x68]
mov dword [eax + ecx*4 + 4], edx
mov edx, dword [esp + 0x2c]
mov dword [eax + ecx*4], 0xe
mov dword [eax + ecx*4 + 8], edx
mov dword [eax + ecx*4 + 0xc], 0
mov dword [eax + ecx*4 + 0x10], 0
mov ecx, dword [ebx + 0x6c]
cmp dword [ebx + 0x70], ecx
jg 0x4d965f
push 0
push esi
push edi
mov edx, 0xe
mov ecx, ebx
call fcn.0049bf40
add esp, 0xc
jmp 0x4d968a
lea eax, [ecx + 1]
mov dword [ebx + 0x6c], eax
lea ecx, [ecx + ecx*4]
mov eax, dword [ebx + 0x68]
mov dword [eax + ecx*4], 0xe
mov dword [eax + ecx*4 + 4], edi
mov dword [eax + ecx*4 + 8], esi
mov dword [eax + ecx*4 + 0xc], 0
mov dword [eax + ecx*4 + 0x10], 0
mov ecx, dword [ebx + 0xc]
mov edx, dword [esp + 0x3c]
not edx
mov eax, dword [ecx + 0x3c]
add eax, dword [ecx + 0x38]
jns 0x4d96a8
push edx
mov edx, ebx
call fcn.0049c590
add esp, 4
jmp 0x4d96b1
mov ecx, dword [ecx + 0x40]
mov eax, dword [ebx + 0x6c]
mov dword [ecx + edx*4], eax
mov edx, dword [ebx + 0x6c]
cmp dword [ebx + 0x70], edx
jg 0x4d96d2
push 0
push 0
push 0
mov edx, 0x56
mov ecx, ebx
call fcn.0049bf40
add esp, 0xc
mov edx, eax
jmp 0x4d9705
lea eax, [edx + 1]
mov dword [ebx + 0x6c], eax
lea ecx, [edx + edx*4]
mov eax, dword [ebx + 0x68]
mov dword [eax + ecx*4], 0x56
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
push 0xfffffffffffffff1
push dword [esp + 0x64]
mov ecx, ebx
call fcn.0049cd30
mov esi, dword [ebx + 0x6c]
add esp, 8
mov edx, dword [esp + 0x70]
mov edi, dword [esp + 0x88]
cmp dword [ebx + 0x70], esi
jg 0x4d9741
push dword [esp + 0x34]
mov ecx, ebx
push edx
push edi
mov edx, 0x57
call fcn.0049bf40
add esp, 0xc
mov esi, eax
jmp 0x4d9770
lea eax, [esi + 1]
mov dword [ebx + 0x6c], eax
lea ecx, [esi + esi*4]
mov eax, dword [ebx + 0x68]
mov ebx, dword [esp + 0x4c]
mov dword [eax + ecx*4 + 8], edx
mov edx, dword [esp + 0x34]
mov dword [eax + ecx*4], 0x57
mov dword [eax + ecx*4 + 4], edi
mov dword [eax + ecx*4 + 0xc], edx
mov dword [eax + ecx*4 + 0x10], 0
push 0xfffffffffffffff7
push dword [esp + 0x68]
mov edx, esi
mov ecx, ebx
call fcn.0049cd30
mov ecx, dword [ebx + 0x6c]
add esp, 8
test ecx, ecx
jle 0x4d979c
mov eax, dword [ebx + 0x68]
lea ecx, [ecx + ecx*4]
mov edx, 1
mov word [eax + ecx*4 - 0x12], dx
mov ecx, dword [ebx + 0x6c]
cmp dword [ebx + 0x70], ecx
jg 0x4d97c1
mov edx, dword [esp + 0x54]
mov ecx, ebx
push edx
mov edx, dword [esp + 0x20]
push edx
mov edx, dword [esp + 0x20]
push edx
mov edx, 0x10
call fcn.0049bf40
add esp, 0xc
jmp 0x4d97f4
mov edx, dword [esp + 0x18]
lea eax, [ecx + 1]
mov dword [ebx + 0x6c], eax
lea ecx, [ecx + ecx*4]
mov eax, dword [ebx + 0x68]
mov dword [eax + ecx*4 + 4], edx
mov edx, dword [esp + 0x1c]
mov dword [eax + ecx*4 + 8], edx
mov edx, dword [esp + 0x54]
mov dword [eax + ecx*4], 0x10
mov dword [eax + ecx*4 + 0xc], edx
mov dword [eax + ecx*4 + 0x10], 0
mov ecx, dword [ebx + 0xc]
mov edx, dword [esp + 0x30]
not edx
mov eax, dword [ecx + 0x3c]
add eax, dword [ecx + 0x38]
jns 0x4d9812
push edx
mov edx, ebx
call fcn.0049c590
add esp, 4
jmp 0x4d981b
mov ecx, dword [ecx + 0x40]
mov eax, dword [ebx + 0x6c]
mov dword [ecx + edx*4], eax
mov ebx, dword [esp + 0x14]
mov edx, dword [ebx + 0x34]
test edx, edx
je 0x4d9834
mov ecx, dword [esp + 0x40]
push 1
call fcn.004d4560
add esp, 4
mov eax, dword [esp + 0x38]
mov dword [ebx + 0x34], eax
mov dword [eax + 0x38], ebx
mov ebx, dword [esp + 0x20]
mov ecx, dword [ebx + 0xd4]
test ecx, ecx
jne 0x4d9850
xor eax, eax
jmp 0x4d9876
mov edx, dword [ebx + 8]
test ecx, ecx
jns 0x4d985b
mov ecx, dword [edx + 0x6c]
dec ecx
mov eax, dword [edx]
cmp byte [eax + 0x51], 0
je 0x4d986a
mov eax, 0x647cc8
jmp 0x4d9873
mov eax, dword [edx + 0x68]
lea ecx, [ecx + ecx*4]
lea eax, [eax + ecx*4]
mov eax, dword [eax + 8]
mov dword [ebx + 0xd4], eax
xor eax, eax
cmp dword [ebx + 0x24], eax
pop edi
pop esi
setne al
pop ebx
mov esp, ebp
pop ebp
ret