Function at 0x4b5140
Capabilities:
Enumerate pe sections

Disassembly:
sub esp, 0x9dc
push ebx
push ebp
mov ebp, dword [esp + 0xa04]
test ebp, ebp
push esi
push edi
jne 0x4b5173
mov ecx, 0xe
xor eax, eax
lea edi, [esp + 0x334]
lea ebp, [esp + 0x334]
rep stosd dword es:[edi], eax
mov dword [esp + 0xa0c], ebp
mov eax, dword [esp + 0xa04]
mov ecx, dword [esp + 0x9f4]
lea esi, [ecx + eax]
cmp esi, 0x20
mov dword [esp + 0x38], esi
ja 0x4b6214
mov ebx, dword [esp + 0x9fc]
test ebx, ebx
je 0x4b6214
push 0x631b00
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
xor eax, eax
mov ecx, 0x9c
lea edi, [esp + 0xc4]
mov dword [esp + 0x44], eax
mov dword [esp + 0x14], eax
rep stosd dword es:[edi], eax
mov eax, dword [esp + 0xa10]
and eax, 1
mov dword [esp + 0x50], eax
je 0x4b51e9
mov eax, dword [ebp + 0x2c]
test ah, 0x40
jne 0x4b51e2
and eax, 0x8075
jmp 0x4b51e5
and eax, 0x70
mov dword [esp + 0x14], eax
mov edx, dword [ebp + 0xc]
mov eax, dword [ebp + 8]
cmp edx, eax
jbe 0x4b51f6
mov dword [ebp + 0xc], eax
push 0x30
shl esi, 6
push esi
call fcn.004c6560
add esp, 8
test eax, eax
mov dword [esp + 0x54], eax
jne 0x4b521e
call fcn.004c7060
mov eax, dword [eax]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x9dc
ret
mov esi, dword [esp + 0xa00]
xor edi, edi
mov dword [esp + 0x28], edi
mov dword [esp + 0x28], ebx
mov dword [esp + 0x1c], edi
mov dword [esp + 0x3c], edi
mov dword [esp + 0x18], edi
mov dword [esp + 0x30], edi
mov dword [esp + 0x20], edi
mov dword [esp + 0x2c], edi
mov ebx, edi
mov ecx, dword [esp + 0x2c]
xor edx, edx
mov dx, word [esi + 2]
mov eax, edx
and eax, 0xffff
add ecx, eax
mov dword [esp + 0x2c], ecx
movsx ecx, word [esi]
test ecx, ecx
je 0x4b5308
cmp ecx, 9
je 0x4b5308
inc ebx
cmp ecx, 4
jne 0x4b52b0
mov ecx, dword [esp + 0x1dc]
inc ecx
cmp edi, 0x7fffffff
mov dword [esp + 0x1dc], ecx
je 0x4b530c
cmp dx, 0xc
jne 0x4b529e
mov edi, bind
jmp 0x4b530c
lea ecx, [eax*8 - 0x40]
mov edx, 1
shl edx, cl
add edi, edx
jmp 0x4b530c
cmp ecx, 2
je 0x4b52ed
cmp ecx, 1
je 0x4b52ed
cmp ecx, 8
jne 0x4b52e1
inc dword [esp + 0x20]
mov ecx, dword [esp + 0x30]
dec ebx
lea eax, [ecx + eax - 2]
inc edi
cmp dx, 0x101
mov dword [esp + 0x30], eax
jbe 0x4b530c
inc dword [esp + 0x18]
add edi, 2
jmp 0x4b530c
cmp ecx, 3
je 0x4b530c
add dword [esp + 0x1c], eax
dec ebx
jmp 0x4b530c
cmp edi, 0x7fffffff
je 0x4b5302
xor ecx, ecx
cmp dx, 0xff
seta cl
inc ecx
add edi, ecx
inc dword [esp + 0x1c]
jmp 0x4b530c
add dword [esp + 0x1c], eax
mov eax, dword [esp + 0x28]
add esi, 0x20
dec eax
mov dword [esp + 0x28], eax
jne 0x4b5249
mov edx, ebx
and edx, 7
cmp dl, 1
mov dword [esp + 0x28], edi
mov dword [esp + 0x3c], ebx
jne 0x4b5368
mov ecx, dword [esp + 0xa00]
cmp esi, ecx
je 0x4b5368
mov eax, 1
sub esi, 0x20
cmp word [esi], 3
jne 0x4b534f
cmp word [esi + 2], ax
je 0x4b5355
cmp esi, ecx
jne 0x4b5340
jmp 0x4b5368
mov eax, dword [esp + 0x1c]
dec ebx
inc eax
mov word [esi], 0
mov dword [esp + 0x3c], ebx
mov dword [esp + 0x1c], eax
test ebx, ebx
mov al, byte [esp + 0xa10]
jne 0x4b5377
test al, 2
je 0x4b5384
mov ebx, dword [esp + 0x14]
or ebx, 1
mov dword [esp + 0x14], ebx
jmp 0x4b5388
mov ebx, dword [esp + 0x14]
test bl, 1
jne 0x4b5394
and ebx, 0xffffffdf
mov dword [esp + 0x14], ebx
test bl, 5
je 0x4b53a3
mov esi, dword [esp + 0x1c]
mov ecx, dword [esp + 0x20]
jmp 0x4b53b2
mov ecx, dword [esp + 0x30]
mov edx, dword [esp + 0x20]
mov esi, dword [esp + 0x1c]
lea ecx, [ecx + edx*2]
add esi, ecx
test al, 4
je 0x4b53bf
or ebx, 0x10
mov dword [esp + 0x14], ebx
test al, 8
jne 0x4b53c8
test bl, 0x20
je 0x4b53d0
or ebx, 0x20
mov dword [esp + 0x14], ebx
inc esi
test al, 0x40
je 0x4b53db
or ebx, 0x40
mov dword [esp + 0x14], ebx
mov edx, dword [esp + 0x3c]
lea eax, [edx + 7]
shr eax, 3
cmp edi, 0x7fffffff
mov dword [esp + 0x3c], eax
je 0x4b540c
mov edx, dword [esp + 0x2c]
mov ecx, ebx
and ecx, 0x22
sub cl, 0x22
neg cl
sbb ecx, ecx
inc ecx
add ecx, eax
add ecx, edx
add edi, ecx
mov dword [esp + 0x28], edi
mov edx, dword [ebp + 0x18]
add esi, eax
or edx, dword [ebp + 0x1c]
mov eax, dword [ebp + 8]
mov dword [esp + 0x1c], esi
jne 0x4b5470
test eax, eax
je 0x4b5460
cmp edi, 0x7fffffff
je 0x4b5460
xor esi, esi
push esi
push eax
push 0xffffffffffffffff
push 0xffffffffffffffff
call fcn.00599a40
cmp edx, esi
ja 0x4b544b
jb 0x4b5440
cmp eax, edi
jae 0x4b544b
or eax, 0xffffffff
mov dword [ebp + 0x18], eax
mov dword [ebp + 0x1c], eax
jmp 0x4b5495
mov eax, dword [ebp + 8]
push esi
push edi
push 0
push eax
call fcn.00599a00
mov dword [ebp + 0x18], eax
mov dword [ebp + 0x1c], edx
jmp 0x4b5495
mov dword [ebp + 0x18], bind
mov dword [ebp + 0x1c], 0
jmp 0x4b5495
test eax, eax
jne 0x4b5495
mov edx, dword [ebp + 0x1c]
mov eax, dword [ebp + 0x18]
mov ecx, ebx
and cl, 1
neg cl
push 0
sbb ecx, ecx
and ecx, 3
add ecx, esi
push ecx
push edx
push eax
call fcn.00599a40
mov dword [ebp + 8], eax
and ebx, 5
push 4
je 0x4b54a6
mov ecx, dword [ebp + 0x1c]
mov edx, dword [ebp + 0x18]
push ecx
push edx
jmp 0x4b54ac
mov eax, dword [ebp + 8]
push 0
push eax
call fcn.004b6250
mov esi, eax
mov eax, dword [ebp + 8]
xor ecx, ecx
add esp, 0xc
mov dword [esp + 0x58], eax
xor edi, edi
or eax, ecx
mov dword [esp + 0x34], esi
mov dword [esp + 0x5c], ecx
jne 0x4b54fa
lea ecx, [esi*8]
mov eax, 1
xor edx, edx
call fcn.00599e10
mov ecx, dword [esp + 0x1c]
push edi
sub eax, 1
push ecx
sbb edx, edi
push edx
push eax
call fcn.00599a40
mov dword [esp + 0x58], eax
mov dword [esp + 0x5c], edx
cmp ebx, edi
mov eax, dword [esp + 0x2c]
mov dword [esp + 0x60], eax
jne 0x4b5513
cmp eax, esi
ja 0x4b551b
lea edx, [esi + 1]
mov dword [esp + 0x2c], edx
jmp 0x4b551b
add eax, dword [esp + 0x18]
mov dword [esp + 0x2c], eax
mov eax, dword [esp + 0x54]
mov dword [esp + 0x12c], eax
cmp dword [esp + 0xa04], edi
lea ecx, [esp + 0x7ec]
lea edx, [esp + 0x36c]
mov dword [esp + 0x30], edi
mov dword [esp + 0x48], edi
mov dword [esp + 0x4c], edi
mov dword [esp + 0x40], edi
mov dword [esp + 0x18], edi
mov dword [esp + 0x130], ecx
mov dword [esp + 0x134], edx
je 0x4b556f
mov eax, dword [0x5f2bbc]
add esi, 4
mov dword [esp + 0x18], eax
mov dword [esp + 0x30], esi
cmp dword [esp + 0x9f4], edi
mov esi, dword [esp + 0x9f8]
mov dword [esp + 0x10], edi
jbe 0x4b5882
mov ebx, dword [esp + 0x14]
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x130]
mov dword [ecx + eax*8], 0xffffffff
mov edx, dword [esp + 0x130]
mov dword [edx + eax*8 + 4], 0xffffffff
mov eax, dword [esp + 0x34]
mov dword [esp + 0x24], eax
mov ax, word [esi + 2]
xor ecx, ecx
xor edi, edi
test al, 0x80
je 0x4b5629
mov eax, dword [esp + 0x50]
or ebx, 2
test eax, eax
mov word [esi + 2], 0x8a
mov dword [esp + 0x14], ebx
je 0x4b55da
add word [esi], 0xfffe
mov eax, dword [esi + 0x18]
xor ebp, ebp
mov bp, word [esi]
xor ecx, ecx
mov edi, ebp
and edi, 0xffff
jle 0x4b5606
mov dl, byte [eax]
cmp dl, 1
je 0x4b55fe
cmp dl, 0xf
jne 0x4b597e
inc ecx
add eax, 0x18
cmp ecx, edi
jl 0x4b55ee
mov ecx, dword [esp + 0x34]
add ebp, 2
add ecx, 0x102
mov dword [esp + 0x24], ecx
mov word [esi], bp
mov ecx, 1
mov edi, 0xfe
jmp 0x4b5772
test al, 2
je 0x4b5677
mov edx, dword [esi + 0x18]
xor eax, eax
mov ax, word [edx + 6]
test al, 1
je 0x4b5648
cmp byte [edx], 7
jne 0x4b5648
and eax, 0xfffe
mov word [edx + 6], ax
mov edx, dword [esi + 0x18]
test byte [edx + 6], 0x29
jne 0x4b5665
xor eax, eax
mov ax, word [esi + 2]
and eax, 0xfffd
or eax, 0x28
mov word [esi + 2], ax
jmp 0x4b5677
mov eax, dword [esi + 0x18]
or byte [eax + 6], 2
or byte [esi + 2], 8
or ebx, 2
mov dword [esp + 0x14], ebx
mov ax, word [esi + 2]
test al, 0x20
je 0x4b5686
or ebx, 2
mov dword [esp + 0x14], ebx
test al, 0x10
je 0x4b56a4
mov edx, dword [esp + 0xa0c]
mov al, byte [edx + 0x31]
test al, al
je 0x4b56a4
mov eax, dword [esp + 0x10]
inc eax
mov dword [esp + 0x1d8], eax
cmp word [esi], 0
mov eax, dword [esi + 0x18]
mov dword [esp + 0x20], 0
jbe 0x4b5772
xor edx, edx
mov dl, byte [eax]
lea ebp, [edx - 3]
cmp ebp, 0xb
ja case.0x4b56cd.4
xor edx, edx
mov dl, byte [ebp + 0x4b6238]
jmp dword [edx*4 + 0x4b6230]
or byte [eax + 6], 0x40
test byte [eax + 6], 1
je 0x4b5703
or byte [esi + 2], 0xc
xor edx, edx
mov dx, word [eax + 8]
or ebx, 2
inc ecx
mov ebp, edx
and ebp, 0xffff
add edi, ebp
cmp dx, 0xff
jb 0x4b5703
add edi, 2
add ecx, 2
test byte [eax + 6], 0x28
je 0x4b572e
or byte [esi + 2], 8
xor edx, edx
mov dx, word [eax + 8]
inc ecx
or ebx, 2
mov ebp, edx
and ebp, 0xffff
add edi, ebp
cmp dx, 0xff
jb 0x4b572e
add edi, 2
add ecx, 2
mov ebp, dword [esp + 0x24]
xor edx, edx
mov dx, word [eax + 8]
add ebp, edx
mov dl, byte [eax + 2]
test dl, dl
mov dword [esp + 0x24], ebp
je 0x4b5755
or byte [eax + 6], 0x10
inc ebp
or ebx, 2
or byte [esi + 2], 0x48
mov dword [esp + 0x24], ebp
mov edx, dword [esp + 0x20]
xor ebp, ebp
mov bp, word [esi]
inc edx
add eax, 0x18
mov dword [esp + 0x20], edx
cmp edx, ebp
jb 0x4b56b9
mov dword [esp + 0x14], ebx
mov ebp, dword [esp + 0x40]
xor eax, eax
mov ax, word [esi]
mov edx, eax
and edx, 0xffff
add ebp, edx
cmp ax, 0x10
mov dword [esp + 0x40], ebp
ja 0x4b597e
mov al, byte [esi + 2]
and al, 0x41
cmp al, 1
jne 0x4b57ad
mov edx, dword [esp + 0x12c]
mov eax, ebp
mov dword [edx + eax*4 - 4], 1
mov ebp, dword [esp + 0x24]
mov edx, dword [esp + 0x34]
add ecx, ebp
mov ebp, dword [0x5f2bbc]
lea eax, [ecx + edx]
lea eax, [eax*4 + 0x1b]
xor edx, edx
div ebp
inc eax
imul eax, ebp
cmp ax, 0x4000
mov word [esi + 6], ax
ja 0x4b597e
cmp ecx, 0x264
jae 0x4b597e
mov edx, dword [esp + 0x18]
and eax, 0xffff
cmp edx, eax
jae 0x4b57fa
mov dword [esp + 0x18], eax
mov dx, word [esp + 0x24]
mov eax, ecx
sub eax, edi
mov word [esi + 0xc], ax
cmp ecx, dword [esp + 0x30]
mov word [esi + 0xa], dx
mov word [esi + 0xe], cx
jbe 0x4b5819
mov dword [esp + 0x30], ecx
xor edi, edi
mov di, word [esi + 6]
xor edx, edx
add ecx, ecx
push 0
lea eax, [edi - 5]
div ecx
mov edx, dword [esp + 0x60]
push eax
mov eax, dword [esp + 0x60]
push edx
push eax
call fcn.00599a40
mov ecx, eax
mov ebp, edx
mov eax, edi
cdq
push edx
push eax
push ebp
push ecx
call fcn.00599a00
mov ecx, dword [esp + 0x48]
mov ebp, dword [esp + 0x4c]
add ecx, eax
mov eax, dword [esp + 0x10]
adc ebp, edx
mov dword [esp + 0x48], ecx
mov ecx, dword [esp + 0x9f4]
inc eax
add esi, 0x30
cmp eax, ecx
mov dword [esp + 0x4c], ebp
mov dword [esp + 0x10], eax
jb 0x4b558b
mov ebp, dword [esp + 0xa0c]
xor edi, edi
mov ecx, dword [esp + 0x18]
shr ecx, 0xa
mov edx, ecx
mov dword [esp + 0x20], ecx
dec ecx
test edx, edx
je 0x4b58ac
lea eax, [esp + ecx*8 + 0x36c]
inc ecx
or edx, 0xffffffff
mov dword [eax], edx
mov dword [eax + 4], edx
dec ecx
sub eax, 8
cmp ecx, edi
ja 0x4b589f
mov eax, dword [esp + 0xa04]
mov edi, dword [esp + 0xa08]
xor ebx, ebx
cmp eax, ebx
mov dword [esp + 0x10], ebx
jbe 0x4b5a59
mov eax, dword [esp + 0x9f4]
lea esi, [eax*8]
mov cl, byte [esp + 0x10]
add cl, byte [esp + 0x9f4]
mov eax, dword [esp + 0x130]
xor edx, edx
mov dx, word [edi]
mov byte [edi + 2], cl
mov dword [esi + eax], 0xffffffff
mov ecx, dword [esp + 0x130]
mov dword [esi + ecx + 4], 0xffffffff
mov ebp, dword [0x5f2bbc]
mov ecx, dword [esp + 0x34]
add ebx, edx
xor edx, edx
lea ecx, [ecx + ecx + 8]
lea eax, [ebp - 5]
div ecx
mov edx, dword [esp + 0x5c]
push 0
push eax
mov eax, dword [esp + 0x60]
push edx
push eax
call fcn.00599a40
push 0
push ebp
push edx
push eax
call fcn.00599a00
mov ecx, dword [esp + 0x48]
mov ebp, dword [esp + 0x4c]
add ecx, eax
mov eax, dword [esp + 0x10]
adc ebp, edx
mov dword [esp + 0x48], ecx
mov ecx, dword [esp + 0xa04]
inc eax
add esi, 8
add edi, 0xc
cmp eax, ecx
mov dword [esp + 0x4c], ebp
mov dword [esp + 0x10], eax
jb 0x4b58d6
mov edi, dword [esp + 0x9fc]
mov ebp, dword [esp + 0xa0c]
jmp 0x4b5a60
call fcn.004c7060
mov dword [eax], 0x8c
push 0x631b00
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
call fcn.004c7060
mov esi, dword [eax]
mov eax, dword [esp + 0x44]
dec eax
je 0x4b59f2
dec eax
je 0x4b59bb
dec eax
jne 0x4b5a38
mov edx, dword [esp + 0x38]
push 0
push edx
call fcn.004c6730
add esp, 8
mov eax, dword [esp + 0x50]
test eax, eax
jne 0x4b59f2
mov eax, dword [esp + 0x9f0]
push 0
push 6
push str..MYD
push 0x6244e8
push eax
lea ecx, [esp + 0x400]
push ecx
call fcn.004c6a10
add esp, 0x14
push eax
call fcn.004cc130
add esp, 8
mov edx, dword [esp + 0x18]
push 0
push edx
call fcn.004c6730
mov eax, dword [esp + 0x58]
add esp, 8
test eax, eax
jne 0x4b5a38
mov eax, dword [esp + 0x9f0]
push 0
push 6
push str..MYI
push 0x6244e8
push eax
lea ecx, [esp + 0x400]
push ecx
call fcn.004c6a10
add esp, 0x14
push eax
call fcn.004cc130
add esp, 8
mov edx, dword [esp + 0x54]
push edx
call fcn.004c65f0
add esp, 4
call fcn.004c7060
pop edi
mov dword [eax], esi
mov eax, esi
pop esi
pop ebp
pop ebx
add esp, 0x9dc
ret
mov edi, dword [esp + 0x9fc]
mov edx, dword [esp + 0x38]
mov ecx, dword [esp + 0x40]
mov esi, dword [esp + 0xa04]
mov eax, dword [esp + 0x20]
add eax, edx
add ecx, esi
lea eax, [ecx + eax*2 + 0x2c]
shl eax, 2
lea esi, [esi + edx*2]
mov dword [esp + 0x40], ecx
add edx, esi
lea edx, [eax + edx*4 + 0x64]
mov dword [esp + 0x10], eax
add ecx, ebx
lea ecx, [ecx + ecx*8]
lea eax, [edi*8]
lea ecx, [edx + ecx*2]
push 4
sub eax, edi
lea edx, [esp + 0xc8]
add eax, ecx
push 0x5f2ba8
push edx
mov dword [esp + 0x30], eax
call fcn.00599ab0
mov eax, dword [ebp + 0x2c]
mov ecx, dword [esp + 0x20]
and eax, 0x4000
add esp, 0xc
neg eax
sbb eax, eax
and eax, 0x4004
or eax, ecx
mov dword [ebp + 0x2c], eax
mov byte [esp + 0xc9], al
shr eax, 8
mov byte [esp + 0xc8], al
mov eax, dword [esp + 0x24]
mov byte [esp + 0xcb], al
shr eax, 8
mov byte [esp + 0xca], al
mov eax, dword [esp + 0x10]
mov byte [esp + 0xd1], al
shr eax, 8
mov byte [esp + 0xd0], al
mov al, byte [ebp + 0x30]
test al, al
mov byte [esp + 0xcd], 0xb0
mov byte [esp + 0xcc], 0
mov byte [esp + 0xcf], 0x64
mov byte [esp + 0xce], 0
je 0x4b5b42
mov byte [esp + 0xd8], al
jmp 0x4b5b51
mov ecx, dword [0x5f5f90]
mov dl, byte [ecx]
mov byte [esp + 0xd8], dl
mov al, byte [esp + 0x20]
mov byte [esp + 0xd9], al
or eax, 0xffffffff
mov dword [esp + 0x10c], eax
mov dword [esp + 0x110], eax
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov dword [esp + 0x11c], eax
xor eax, eax
push eax
mov dword [esp + 0x124], eax
mov dword [esp + 0x128], eax
call fcn.0059a77b
mov esi, dword [esp + 0x1c]
mov ecx, dword [ebp + 0x10]
mov edx, dword [ebp + 0x14]
mov dword [esp + 0x15c], eax
mov eax, dword [esp + 0x18]
mov dword [esp + 0x274], eax
mov eax, esi
imul eax, dword [esp + 0x3c]
mov dword [esp + 0x118], ecx
mov ecx, dword [esp + 0x38]
mov dword [esp + 0x1d0], ecx
mov ecx, dword [esp + 0x4c]
mov dword [esp + 0x11c], edx
add esp, 4
shl eax, 4
xor edx, edx
add eax, ecx
adc edx, dword [esp + 0x4c]
push 3
mov ecx, 0xa
mov dword [esp + 0x16c], 0xffff
call fcn.00599df0
push edx
push eax
call fcn.004b6250
mov ecx, dword [esp + 0x44]
mov dword [esp + 0x1dc], eax
mov al, byte [esp + 0xa10]
mov byte [esp + 0xe3], al
mov eax, dword [esp + 0x4c]
mov edx, ecx
mov byte [esp + 0xdf], al
and edx, 0xff
shr eax, 8
mov dword [esp + 0x1e0], edx
mov byte [esp + 0xde], al
mov byte [esp + 0xe1], bl
shr ebx, 8
add esp, 0xc
mov eax, 1
xor edx, edx
mov byte [esp + 0xd6], cl
mov byte [esp + 0xd4], bl
call fcn.00599e10
mov ecx, dword [0x5f2bbc]
sub eax, 1
sbb edx, 0
mov dword [esp + 0x14c], eax
mov dword [esp + 0x150], edx
mov edx, dword [esp + 0x24]
lea eax, [edx + ecx - 1]
mov edx, dword [ebp + 0xc]
dec ecx
not ecx
and eax, ecx
mov dword [esp + 0xf4], eax
mov dword [esp + 0x184], eax
mov eax, dword [esp + 0x30]
xor ecx, ecx
add eax, 0xb
mov dword [esp + 0xf8], ecx
mov dword [esp + 0x188], ecx
mov ecx, dword [ebp + 8]
and eax, 0xfffffff8
mov dword [esp + 0x1e4], esi
mov dword [esp + 0x1e8], eax
mov dword [esp + 0x1a4], ecx
mov dword [esp + 0x1a8], edx
mov eax, dword [esp + 0x60]
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x28]
mov esi, dword [esp + 0x2c]
mov dword [esp + 0x1b0], eax
mov eax, ecx
shr eax, 5
mov dword [esp + 0x1bc], edx
mov edx, dword [esp + 0x1c]
and eax, 1
add eax, esi
test cl, 0x10
mov dword [esp + 0x1b8], edx
mov edx, dword [esp + 0x3c]
mov dword [esp + 0x1b4], eax
mov dword [esp + 0x1e0], edx
mov dword [esp + 0x1c4], edi
mov dword [esp + 0x1c8], edx
je 0x4b5d3d
mov ecx, dword [ebp + 0x18]
mov edx, dword [ebp + 0x1c]
mov dword [esp + 0x18c], ecx
mov dword [esp + 0x190], edx
lea edx, [eax + 3]
mov ecx, 0x14
cmp edx, ecx
jae 0x4b5d5f
mov edx, dword [esp + 0x1dc]
test edx, edx
jne 0x4b5d5f
cmp eax, ecx
mov dword [esp + 0x1c0], eax
ja 0x4b5d66
mov dword [esp + 0x1c0], ecx
mov esi, dword [esp + 0x50]
test esi, esi
jne 0x4b5d7e
push esi
call fcn.0059a77b
add esp, 4
mov dword [esp + 0x15c], eax
mov eax, dword [ebp]
test eax, eax
je 0x4b5dce
push 4
push str..MYI
push 0x6244e8
push eax
lea eax, [esp + 0x3fc]
push eax
call fcn.004c6a10
mov edi, dword [esp + 0xa04]
push 4
push str..MYI
push 0x6244e8
lea ecx, [esp + 0x60c]
push edi
push ecx
call fcn.004c6a10
add esp, 0x28
lea ecx, [esp + 0x5ec]
xor eax, eax
jmp 0x4b5e02
mov edi, dword [esp + 0x9f0]
lea edx, [esi + 4]
neg edx
sbb edx, edx
and edx, 0x20
push edx
push str..MYI
push 0x6244e8
lea eax, [esp + 0x3f8]
push edi
push eax
call fcn.004c6a10
add esp, 0x14
xor ecx, ecx
mov eax, 0x100
or eax, 0x10
push eax
push 0x202
push 0
lea edx, [esp + 0x3f8]
push edx
push ecx
call fcn.004cbfe0
mov ebx, eax
add esp, 0x14
test ebx, ebx
mov dword [esp + 0x18], ebx
jl 0x4b5989
test esi, esi
mov dword [esp + 0x44], 1
jne 0x4b5ecd
mov ebp, dword [ebp + 4]
test ebp, ebp
push 4
push str..MYD
push 0x6244e8
je 0x4b5e85
lea eax, [esp + 0x3f8]
push ebp
push eax
call fcn.004c6a10
push 4
push str..MYD
push 0x6244e8
lea ecx, [esp + 0x60c]
push edi
push ecx
call fcn.004c6a10
add esp, 0x28
lea ecx, [esp + 0x5ec]
xor eax, eax
jmp 0x4b5e9d
lea edx, [esp + 0x3f8]
push edi
push edx
call fcn.004c6a10
add esp, 0x14
xor ecx, ecx
mov eax, 0x100
or eax, 0x10
push eax
push 0x202
push 0
lea eax, [esp + 0x3f8]
push eax
push ecx
call fcn.004cbfe0
add esp, 0x14
test eax, eax
mov dword [esp + 0x38], eax
jl 0x4b5989
mov dword [esp + 0x44], 3
push 2
lea ecx, [esp + 0xc8]
push ecx
push ebx
call fcn.004a6690
add esp, 0xc
test eax, eax
jne 0x4b5989
lea edx, [esp + 0x184]
push edx
push ebx
call fcn.004a7570
add esp, 8
test eax, eax
jne 0x4b5989
mov ebp, dword [esp + 0xa04]
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x1d4]
sub eax, ebp
je 0x4b601b
mov ebp, dword [esp + 0x9f8]
mov ecx, dword [esp + 0x18]
xor ebx, ebx
mov bl, byte [ebp + 2]
push ebp
push ecx
shr ebx, 6
and ebx, 2
call fcn.004a7c70
add esp, 8
test eax, eax
jne 0x4b5989
xor edx, edx
mov dx, word [ebp]
xor esi, esi
sub edx, ebx
je 0x4b5f7e
xor edi, edi
mov edx, dword [ebp + 0x18]
mov ecx, dword [esp + 0x18]
mov eax, edi
add eax, edx
push eax
push ecx
call fcn.004a7db0
add esp, 8
test eax, eax
jne 0x4b5989
xor edx, edx
mov dx, word [ebp]
inc esi
add edi, 0x18
sub edx, ebx
cmp esi, edx
jb 0x4b5f51
test ebx, ebx
mov dword [esp + 0x20], 0
jbe 0x4b5fe6
mov dword [esp + 0x28], 0x5d32e0
mov eax, dword [ebp + 0x18]
mov esi, dword [esp + 0x28]
mov ecx, 6
lea edi, [esp + 0xac]
rep movsd dword es:[edi], dword [esi]
mov cl, byte [eax + 1]
mov eax, dword [esp + 0x18]
lea edx, [esp + 0xac]
push edx
push eax
mov byte [esp + 0xb5], cl
call fcn.004a7db0
add esp, 8
test eax, eax
jne 0x4b5989
mov eax, dword [esp + 0x20]
mov edx, dword [esp + 0x28]
inc eax
add edx, 0x18
cmp eax, ebx
mov dword [esp + 0x20], eax
mov dword [esp + 0x28], edx
jb 0x4b5f92
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x1d4]
mov esi, dword [esp + 0xa04]
inc eax
sub ecx, esi
add ebp, 0x30
cmp eax, ecx
mov dword [esp + 0x10], eax
jb 0x4b5f22
mov esi, dword [esp + 0x2c]
mov ebp, dword [esp + 0xa04]
mov ebx, dword [esp + 0x18]
jmp 0x4b601f
mov esi, dword [esp + 0x2c]
xor eax, eax
mov ecx, 0xc
lea edi, [esp + 0x7c]
rep stosd dword es:[edi], eax
lea edx, [ebp*4]
sub esi, edx
test ebp, ebp
mov ecx, 6
lea edi, [esp + 0x64]
rep stosd dword es:[edi], eax
mov dword [esp + 0x10], eax
jbe 0x4b60e1
mov eax, dword [esp + 0x34]
lea edi, [eax + 4]
mov cx, word [0x5f2bbc]
lea edx, [esp + 0x7c]
mov ax, di
push edx
mov dword [esp + 0x74], esi
push ebx
mov word [esp + 0x84], 1
mov word [esp + 0x86], 0x100
mov word [esp + 0x8a], cx
mov word [esp + 0x8e], ax
mov word [esp + 0x92], ax
mov word [esp + 0x90], ax
mov byte [esp + 0x6c], 9
mov word [esp + 0x74], 4
add esi, 4
call fcn.004a7c70
add esp, 8
test eax, eax
jne 0x4b5989
lea eax, [esp + 0x64]
push eax
push ebx
call fcn.004a7db0
add esp, 8
test eax, eax
jne 0x4b5989
mov eax, dword [esp + 0x10]
inc eax
cmp eax, ebp
mov dword [esp + 0x10], eax
jb 0x4b6053
mov al, byte [esp + 0xd7]
test al, al
mov dword [esp + 0x10], 0
jbe 0x4b6159
mov edi, dword [esp + 0xa08]
push edi
push ebx
call fcn.004a7f20
add esp, 8
test eax, eax
jne 0x4b5989
xor ebp, ebp
cmp word [edi], bp
jbe 0x4b613c
xor esi, esi
mov eax, dword [edi + 4]
mov ecx, esi
add ecx, eax
push ecx
push ebx
call fcn.004a7db0
add esp, 8
test eax, eax
jne 0x4b5989
xor edx, edx
mov dx, word [edi]
inc ebp
add esi, 0x18
cmp ebp, edx
jb 0x4b6116
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0xd7]
inc eax
and ecx, 0xff
add edi, 0xc
cmp eax, ecx
mov dword [esp + 0x10], eax
jb 0x4b60fb
mov eax, dword [esp + 0x1c4]
xor edi, edi
test eax, eax
jbe 0x4b618e
mov esi, dword [esp + 0xa00]
push esi
push ebx
call fcn.004a7f90
add esp, 8
test eax, eax
jne 0x4b5989
mov eax, dword [esp + 0x1c4]
inc edi
add esi, 0x20
cmp edi, eax
jb 0x4b616d
mov edx, dword [esp + 0x184]
push 0
push 0
push 0
push edx
push ebx
call fcn.004cecb0
add esp, 0x14
test eax, eax
jne 0x4b5989
mov eax, dword [esp + 0x50]
test eax, eax
jne 0x4b61d4
mov eax, dword [esp + 0x38]
push 0
push eax
mov dword [esp + 0x4c], 2
call fcn.004c6730
add esp, 8
test eax, eax
jne 0x4b5989
push 0x631b00
mov dword [esp + 0x48], 0
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
push 0
push ebx
call fcn.004c6730
add esp, 8
test eax, eax
jne 0x4b5989
mov ecx, dword [esp + 0x54]
push ecx
call fcn.004c65f0
add esp, 4
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x9dc
ret
call fcn.004c7060
pop edi
pop esi
pop ebp
mov dword [eax], 0x8c
mov eax, 0x8c
pop ebx
add esp, 0x9dc
ret