Function at 0x4e2f90
Capabilities:
Enumerate pe sections

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x7c
mov edx, dword [ebp + 8]
mov eax, dword [edx]
test ah, 0x40
jne 0x4e302d
mov ecx, dword [ebp + 8]
mov eax, dword [ecx + 4]
cmp byte [eax + 4], 7
jbe 0x4e3013
mov eax, dword [ecx + 0x18]
test eax, eax
jne 0x4e3000
mov eax, dword [ecx]
test eax, 0x4005
jne 0x4e3000
test ah, 0x10
jne 0x4e319c
test eax, 0x10000
jne 0x4e3042
mov ebx, 0xffffffff
mov esi, dword [ebp + 8]
mov ecx, dword [esi + 0x18]
test ecx, ecx
jne 0x4e3020
test dword [esi], 0x4005
jne 0x4e3020
inc ebx
je 0x4e3013
mov edx, dword [ebp + 8]
or dword [edx], 0x4000
xor eax, eax
add esp, 0x7c
pop ebx
pop esi
pop edi
leave
ret
mov ebx, dword [ebp + 8]
mov dword [esp], ebx
call sym.OpenBOR.elf_SDL_LockSurface
test eax, eax
jns 0x4e3405
mov eax, 0xffffffff
add esp, 0x7c
pop ebx
pop esi
pop edi
leave
ret
mov eax, dword [ebp + 8]
mov dword [esp], eax
call sym.OpenBOR.elf_SDL_UnlockSurface
jmp 0x4e2fea
mov dword [esp + 4], 1
mov dword [esp], edx
call fcn.004e2d40
jmp 0x4e2fa7
mov ecx, dword [ebp + 8]
mov eax, dword [ecx + 4]
mov ebx, dword [eax + 0x1c]
test ebx, ebx
je 0x4e2fd3
mov edx, dword [ecx + 0x30]
mov edx, dword [edx]
test edx, edx
je 0x4e2fd3
mov ebx, dword [edx + 4]
cmp byte [eax + 4], 0x20
jne 0x4e2fd3
mov edx, dword [ebx + 0x10]
mov ecx, dword [ebx + 0x14]
mov edi, dword [ebx + 0x18]
mov esi, ecx
or esi, edx
or esi, edi
mov al, byte [ebx + 5]
mov byte [ebp - 0x1c], al
cmp al, 2
je 0x4e35e9
cmp al, 4
jne 0x4e2fd3
cmp esi, 0xffffff
jne 0x4e2fd3
mov esi, dword [ebp + 8]
mov eax, dword [esi + 0xc]
shl eax, 3
mov edx, dword [esi + 8]
inc edx
imul eax, edx
add eax, 4
mov dword [ebp - 0x24], 0x4ded04
mov dword [ebp - 0x3c], 0x4ded04
add eax, 0x18
mov dword [esp], eax
call sub.msvcrt.dll_malloc
mov esi, eax
test eax, eax
je 0x4e35d5
mov al, byte [ebx + 5]
mov byte [esi], al
mov al, byte [ebx + 6]
mov byte [esi + 1], al
mov al, byte [ebx + 7]
mov byte [esi + 2], al
mov al, byte [ebx + 8]
mov byte [esi + 3], al
mov al, byte [ebx + 0xa]
mov byte [esi + 4], al
mov al, byte [ebx + 0xb]
mov byte [esi + 5], al
mov al, byte [ebx + 0xc]
mov byte [esi + 6], al
mov al, byte [ebx + 0xd]
mov byte [esi + 7], al
mov eax, dword [ebx + 0x10]
mov dword [esi + 8], eax
mov eax, dword [ebx + 0x14]
mov dword [esi + 0xc], eax
mov eax, dword [ebx + 0x18]
mov dword [esi + 0x10], eax
mov eax, dword [ebx + 0x1c]
mov dword [esi + 0x14], eax
lea eax, [esi + 0x18]
mov dword [ebp - 0x20], eax
mov edx, dword [ebp + 8]
mov edx, dword [edx + 0xc]
mov dword [ebp - 0x44], edx
mov ecx, dword [ebp + 8]
mov ecx, dword [ecx + 8]
mov dword [ebp - 0x28], ecx
mov eax, dword [ebp + 8]
mov edi, dword [eax + 4]
mov edx, dword [eax + 0x14]
mov dword [ebp - 0x1c], edx
mov eax, dword [ebp - 0x20]
mov dword [ebp - 0x40], 0
mov dword [ebp - 0x48], esi
mov esi, dword [ebp - 0x40]
cmp dword [ebp - 0x44], esi
jle 0x4e3669
mov dword [ebp - 0x34], 0
mov dword [ebp - 0x30], 0
mov ecx, dword [ebp - 0x30]
mov esi, dword [ebp - 0x1c]
lea ecx, [esi + ecx*4]
mov dword [ebp - 0x2c], ecx
mov edx, dword [ebp - 0x30]
mov esi, eax
cmp dword [ebp - 0x28], edx
jle 0x4e3583
mov eax, dword [edi + 0x1c]
mov ecx, dword [ebp - 0x2c]
and eax, dword [ecx]
movzx ecx, byte [edi + 0xd]
shr eax, cl
add dword [ebp - 0x2c], 4
cmp eax, 0xff
je 0x4e3583
inc edx
jmp 0x4e3173
mov esi, dword [ebp + 8]
mov eax, dword [esi + 4]
mov al, byte [eax + 5]
movzx edx, al
mov dword [ebp - 0x1c], edx
cmp al, 3
ja 0x4e31d8
cmp al, 2
jae 0x4e340c
dec al
jne 0x4e31e0
mov ebx, dword [ebp + 8]
imul ecx, dword [ebx + 0xc], 3
mov eax, dword [ebx + 8]
mov edx, 2
mov esi, edx
cdq
idiv esi
inc eax
imul ecx, eax
add ecx, 2
jmp 0x4e31e2
cmp al, 4
je 0x4e3435
xor ecx, ecx
mov dword [esp], ecx
call sub.msvcrt.dll_malloc
mov dword [ebp - 0x58], eax
mov dword [ebp - 0x5c], eax
test eax, eax
je 0x4e35d5
mov eax, dword [ebp + 8]
mov edx, dword [eax + 0x14]
cmp dword [ebp - 0x1c], 4
je 0x4e3579
mov ebx, 0xff
mov ecx, dword [ebp + 8]
mov eax, dword [ecx + 4]
mov esi, dword [eax + 0x1c]
not esi
mov dword [ebp - 0x2c], esi
and esi, dword [eax + 0x20]
mov dword [ebp - 0x34], esi
mov eax, dword [ebp - 0x1c]
mov eax, dword [eax*4 + 0x59810c]
mov dword [ebp - 0x30], eax
mov ecx, dword [ecx + 8]
mov dword [ebp - 0x28], ecx
mov esi, dword [ebp + 8]
mov esi, dword [esi + 0xc]
mov dword [ebp - 0x54], esi
test esi, esi
jle 0x4e34f8
mov dword [ebp - 0x3c], edx
mov eax, dword [ebp - 0x58]
mov dword [ebp - 0x4c], eax
mov esi, eax
mov dword [ebp - 0x50], 0
mov edx, ebx
neg edx
mov dword [ebp - 0x48], edx
mov dword [ebp - 0x38], ebx
lea esi, [esi]
mov dword [ebp - 0x44], 0
mov dword [ebp - 0x20], 0
mov ecx, dword [ebp - 0x20]
cmp dword [ebp - 0x28], ecx
jle 0x4e347d
nop
mov edi, dword [ebp - 0x1c]
imul edi, ecx
add edi, dword [ebp - 0x3c]
mov ebx, ecx
jmp 0x4e329d
inc ebx
add edi, dword [ebp - 0x1c]
cmp dword [ebp - 0x28], ebx
jle 0x4e3488
mov dword [esp], edi
call dword [ebp - 0x30]
and eax, dword [ebp - 0x2c]
cmp dword [ebp - 0x34], eax
je 0x4e3290
mov dword [ebp - 0x40], ebx
cmp dword [ebp - 0x28], ebx
jle 0x4e35c1
mov eax, dword [ebp - 0x1c]
imul eax, dword [ebp - 0x40]
mov ebx, dword [ebp - 0x3c]
add ebx, eax
mov edi, dword [ebp - 0x40]
jmp 0x4e32d5
inc edi
add ebx, dword [ebp - 0x1c]
cmp dword [ebp - 0x28], edi
jle 0x4e34b0
mov dword [esp], ebx
call dword [ebp - 0x30]
and eax, dword [ebp - 0x2c]
cmp dword [ebp - 0x34], eax
jne 0x4e32c8
mov edx, dword [ebp - 0x40]
sub edx, dword [ebp - 0x20]
mov ecx, edi
sub ecx, dword [ebp - 0x40]
mov dword [ebp - 0x24], ecx
mov ebx, dword [ebp - 0x40]
mov dword [ebp - 0x20], ebx
mov dword [ebp - 0x40], edi
cmp dword [ebp - 0x28], edx
je 0x4e34a3
cmp dword [ebp - 0x38], edx
jge 0x4e3349
mov eax, edx
sub eax, dword [ebp - 0x38]
mov ebx, dword [ebp - 0x38]
mov edi, dword [ebp - 0x48]
jmp 0x4e332c
mov byte [esi], bl
mov byte [esi + 1], 0
add esi, 2
mov edx, eax
add eax, edi
lea ecx, [eax + ebx]
cmp ebx, ecx
jge 0x4e3349
cmp dword [ebp - 0x1c], 4
jne 0x4e3318
mov word [esi], bx
mov word [esi + 2], 0
add esi, 4
mov edx, eax
add eax, edi
lea ecx, [eax + ebx]
cmp ebx, ecx
jl 0x4e332c
mov eax, dword [ebp - 0x24]
mov ecx, dword [ebp - 0x38]
cmp eax, ecx
jle 0x4e3355
mov eax, ecx
cmp dword [ebp - 0x1c], 4
je 0x4e34cc
mov byte [esi], dl
mov byte [esi + 1], al
lea ebx, [esi + 2]
mov edx, dword [ebp - 0x1c]
imul edx, eax
mov ecx, edx
shr ecx, 2
mov esi, dword [ebp - 0x20]
imul esi, dword [ebp - 0x1c]
add esi, dword [ebp - 0x3c]
mov edi, ebx
cld
rep movsd dword es:[edi], dword [esi]
test dl, 2
je 0x4e3388
movsw word es:[edi], word [esi]
test dl, 1
je 0x4e338e
movsb byte es:[edi], byte [esi]
lea esi, [ebx + edx]
mov ebx, dword [ebp - 0x24]
sub ebx, eax
je 0x4e345c
add eax, dword [ebp - 0x20]
mov dword [ebp - 0x24], eax
jmp 0x4e33e4
mov byte [esi], 0
mov byte [esi + 1], al
add esi, 2
mov dword [ebp - 0x20], esi
mov edx, dword [ebp - 0x1c]
imul edx, eax
mov ecx, edx
shr ecx, 2
mov esi, dword [ebp - 0x24]
imul esi, dword [ebp - 0x1c]
add esi, dword [ebp - 0x3c]
mov edi, dword [ebp - 0x20]
cld
rep movsd dword es:[edi], dword [esi]
test dl, 2
je 0x4e33d2
movsw word es:[edi], word [esi]
test dl, 1
je 0x4e33d8
movsb byte es:[edi], byte [esi]
mov esi, dword [ebp - 0x20]
add esi, edx
sub ebx, eax
je 0x4e345c
add dword [ebp - 0x24], eax
mov eax, ebx
cmp ebx, dword [ebp - 0x38]
jle 0x4e33ee
mov eax, dword [ebp - 0x38]
cmp dword [ebp - 0x1c], 4
jne 0x4e33a4
mov word [esi], 0
mov word [esi + 2], ax
add esi, 4
mov dword [ebp - 0x20], esi
jmp 0x4e33b0
mov eax, dword [ebx]
jmp 0x4e2fc3
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 8]
mov edx, 0xff
mov eax, ecx
mov ebx, edx
cdq
idiv ebx
imul ecx, dword [ebp - 0x1c]
lea ecx, [ecx + eax*2 + 2]
mov esi, dword [ebp + 8]
imul ecx, dword [esi + 0xc]
add ecx, 2
jmp 0x4e31e2
mov eax, dword [ebp + 8]
mov ebx, dword [eax + 8]
mov ecx, dword [eax + 0xc]
shl ecx, 2
mov edx, 0xffff
mov eax, ebx
mov esi, edx
cdq
idiv esi
lea eax, [ebx + eax + 1]
imul ecx, eax
add ecx, 4
jmp 0x4e31e2
mov edi, dword [ebp - 0x44]
test edi, edi
jne 0x4e3466
mov dword [ebp - 0x4c], esi
mov ebx, dword [ebp - 0x40]
cmp dword [ebp - 0x28], ebx
jle 0x4e34dc
mov dword [ebp - 0x20], ebx
mov ecx, dword [ebp - 0x20]
cmp dword [ebp - 0x28], ecx
jg 0x4e3280
mov ecx, dword [ebp - 0x20]
mov dword [ebp - 0x40], ecx
xor edx, edx
jmp 0x4e3493
mov dword [ebp - 0x40], ebx
mov edx, ebx
sub edx, dword [ebp - 0x20]
mov dword [ebp - 0x20], ebx
mov dword [ebp - 0x24], 0
cmp dword [ebp - 0x28], edx
jne 0x4e3303
mov dword [ebp - 0x44], 1
jmp 0x4e3303
mov edx, dword [ebp - 0x40]
sub edx, dword [ebp - 0x20]
mov ebx, edi
sub ebx, dword [ebp - 0x40]
mov dword [ebp - 0x24], ebx
mov eax, dword [ebp - 0x40]
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x40], edi
jmp 0x4e32fa
mov word [esi], dx
mov word [esi + 2], ax
lea ebx, [esi + 4]
jmp 0x4e3367
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0x10]
inc dword [ebp - 0x50]
mov ecx, dword [ebp - 0x50]
cmp dword [ebp - 0x54], ecx
jle 0x4e34fe
movzx eax, ax
add dword [ebp - 0x3c], eax
jmp 0x4e3264
mov ebx, dword [ebp - 0x58]
mov dword [ebp - 0x4c], ebx
cmp dword [ebp - 0x1c], 4
je 0x4e3564
mov eax, dword [ebp - 0x4c]
mov byte [eax], 0
mov byte [eax + 1], 0
mov ebx, eax
add ebx, 2
mov edx, dword [ebp + 8]
test dword [edx], 0x1000001
je 0x4e354d
sub ebx, dword [ebp - 0x58]
mov dword [esp + 4], ebx
mov ebx, dword [ebp - 0x58]
mov dword [esp], ebx
call sub.msvcrt.dll_realloc
test eax, eax
je 0x4e3537
mov dword [ebp - 0x5c], eax
mov esi, dword [ebp + 8]
mov eax, dword [esi + 0x30]
mov eax, dword [eax + 0x18]
mov edx, dword [ebp - 0x5c]
mov dword [eax + 4], edx
xor ebx, ebx
jmp 0x4e2fd8
mov eax, dword [edx + 0x14]
mov dword [esp], eax
call sub.msvcrt.dll_free
mov ecx, dword [ebp + 8]
mov dword [ecx + 0x14], 0
jmp 0x4e351e
mov esi, dword [ebp - 0x4c]
mov word [esi], 0
mov word [esi + 2], 0
mov ebx, esi
add ebx, 4
jmp 0x4e3513
mov ebx, 0xffff
jmp 0x4e320d
mov eax, esi
mov dword [ebp - 0x2c], edx
mov esi, dword [ebp - 0x1c]
lea esi, [esi + edx*4]
mov dword [ebp - 0x38], esi
mov esi, eax
mov eax, dword [ebp - 0x2c]
cmp dword [ebp - 0x28], eax
jle 0x4e36dd
mov eax, dword [edi + 0x1c]
mov ecx, dword [ebp - 0x38]
and eax, dword [ecx]
movzx ecx, byte [edi + 0xd]
shr eax, cl
add dword [ebp - 0x38], 4
cmp eax, 0xff
jne 0x4e36dd
inc dword [ebp - 0x2c]
jmp 0x4e3593
mov edx, ebx
sub edx, dword [ebp - 0x20]
mov dword [ebp - 0x20], ebx
mov dword [ebp - 0x24], 0
jmp 0x4e32fa
mov dword [esp], 0
call sym.OpenBOR.elf_SDL_Error
or ebx, 0xffffffff
jmp 0x4e2fd8
cmp esi, 0x7fff
je 0x4e3636
cmp esi, 0xffff
jne 0x4e2fd3
mov dword [ebp - 0x24], 0x4deacc
cmp ecx, 0x7e0
je 0x4e3614
cmp edx, 0x7e0
jne 0x4e365b
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0xc]
shl eax, 1
mov edx, dword [edx + 8]
inc edx
lea edx, [edx + edx*2]
inc edx
imul eax, edx
add eax, 2
mov dword [ebp - 0x3c], 0x4de918
jmp 0x4e30bb
mov dword [ebp - 0x24], 0x4deb84
cmp ecx, 0x3e0
je 0x4e3614
cmp edx, 0x3e0
je 0x4e3614
cmp edi, 0x3e0
jne 0x4e2fd3
jmp 0x4e3614
cmp edi, 0x7e0
jne 0x4e2fd3
jmp 0x4e3614
mov esi, dword [ebp - 0x48]
cmp byte [ebx + 5], 4
je 0x4e36c8
mov edx, dword [ebp - 0x20]
mov byte [edx], 0
mov byte [edx + 1], 0
mov ebx, edx
add ebx, 2
mov ecx, dword [ebp + 8]
test dword [ecx], 0x1000001
jne 0x4e36a1
mov eax, dword [ecx + 0x14]
mov dword [esp], eax
call sub.msvcrt.dll_free
mov eax, dword [ebp + 8]
mov dword [eax + 0x14], 0
sub ebx, esi
mov dword [esp + 4], ebx
mov dword [esp], esi
call sub.msvcrt.dll_realloc
test eax, eax
jne 0x4e36b5
mov eax, esi
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0x30]
mov edx, dword [edx + 0x18]
mov dword [edx + 4], eax
xor ebx, ebx
jmp 0x4e2fd8
mov eax, dword [ebp - 0x20]
mov word [eax], 0
mov word [eax + 2], 0
mov ebx, eax
add ebx, 4
jmp 0x4e3681
mov eax, esi
mov ecx, edx
sub ecx, dword [ebp - 0x30]
cmp dword [ebp - 0x28], ecx
jne 0x4e36f0
mov dword [ebp - 0x34], 1
mov esi, dword [ebp - 0x2c]
sub esi, edx
mov dword [ebp - 0x38], esi
cmp ecx, 0xff
jle 0x4e3728
cmp byte [ebx + 5], 4
je 0x4e3718
mov byte [eax], 0xff
mov byte [eax + 1], 0
add eax, 2
sub ecx, 0xff
jmp 0x4e36f8
mov word [eax], 0xff
mov word [eax + 2], 0
add eax, 4
jmp 0x4e3710
mov esi, dword [ebp - 0x38]
cmp esi, 0xff
jle 0x4e3738
mov esi, 0xff
cmp byte [ebx + 5], 4
je 0x4e37ff
mov byte [eax], cl
mov ecx, esi
mov byte [eax + 1], cl
lea ecx, [eax + 2]
mov dword [esp + 0x10], ebx
mov dword [esp + 0xc], edi
mov dword [esp + 8], esi
mov eax, dword [ebp - 0x1c]
lea eax, [eax + edx*4]
mov dword [esp + 4], eax
mov dword [esp], ecx
mov dword [ebp - 0x60], edx
mov dword [ebp - 0x64], ecx
call dword [ebp - 0x3c]
mov ecx, dword [ebp - 0x64]
lea eax, [ecx + eax]
mov edx, dword [ebp - 0x60]
lea edx, [esi + edx]
mov dword [ebp - 0x30], edx
mov edx, dword [ebp - 0x38]
sub edx, esi
test edx, edx
je 0x4e37ec
mov esi, edx
cmp edx, 0xff
jle 0x4e3795
mov esi, 0xff
cmp byte [ebx + 5], 4
je 0x4e37db
mov byte [eax], 0
mov ecx, esi
mov byte [eax + 1], cl
add eax, 2
mov dword [ebp - 0x38], eax
mov dword [esp + 0x10], ebx
mov dword [esp + 0xc], edi
mov dword [esp + 8], esi
mov eax, dword [ebp - 0x30]
mov ecx, dword [ebp - 0x1c]
lea eax, [ecx + eax*4]
mov dword [esp + 4], eax
mov ecx, dword [ebp - 0x38]
mov dword [esp], ecx
mov dword [ebp - 0x60], edx
call dword [ebp - 0x3c]
add eax, dword [ebp - 0x38]
add dword [ebp - 0x30], esi
mov edx, dword [ebp - 0x60]
sub edx, esi
jmp 0x4e3782
mov word [eax], 0
mov word [eax + 2], si
add eax, 4
mov dword [ebp - 0x38], eax
jmp 0x4e37a9
mov esi, dword [ebp - 0x28]
cmp dword [ebp - 0x2c], esi
jge 0x4e380e
mov edx, dword [ebp - 0x2c]
mov dword [ebp - 0x30], edx
jmp 0x4e3162
mov word [eax], cx
mov word [eax + 2], si
lea ecx, [eax + 4]
jmp 0x4e374c
mov edx, eax
and edx, 2
add eax, edx
mov dword [ebp - 0x30], 0
mov edx, ebx
mov ecx, dword [ebp - 0x30]
mov ebx, dword [ebp - 0x1c]
lea ecx, [ebx + ecx*4]
mov dword [ebp - 0x2c], ecx
mov ebx, dword [ebp - 0x30]
mov esi, eax
cmp dword [ebp - 0x28], ebx
jle 0x4e3851
mov eax, dword [edi + 0x1c]
mov ecx, dword [ebp - 0x2c]
and eax, dword [ecx]
movzx ecx, byte [edi + 0xd]
shr eax, cl
dec eax
add dword [ebp - 0x2c], 4
cmp eax, 0xfd
jbe 0x4e3851
inc ebx
jmp 0x4e382f
mov eax, esi
mov dword [ebp - 0x2c], ebx
mov esi, dword [ebp - 0x1c]
lea esi, [esi + ebx*4]
mov dword [ebp - 0x38], esi
mov esi, eax
mov eax, dword [ebp - 0x2c]
cmp dword [ebp - 0x28], eax
jle 0x4e3888
mov eax, dword [edi + 0x1c]
mov ecx, dword [ebp - 0x38]
and eax, dword [ecx]
movzx ecx, byte [edi + 0xd]
shr eax, cl
dec eax
add dword [ebp - 0x38], 4
cmp eax, 0xfd
ja 0x4e3888
inc dword [ebp - 0x2c]
jmp 0x4e3861
mov eax, esi
mov esi, ebx
sub esi, dword [ebp - 0x30]
mov dword [ebp - 0x38], esi
cmp dword [ebp - 0x28], esi
sete cl
mov esi, ecx
and dword [ebp - 0x34], esi
mov esi, dword [ebp - 0x2c]
sub esi, ebx
mov dword [ebp - 0x30], esi
mov ecx, dword [ebp - 0x38]
cmp ecx, 0xffff
jle 0x4e38c6
mov word [eax], 0xffff
mov word [eax + 2], 0
add eax, 4
sub ecx, 0xffff
jmp 0x4e38a8
mov dword [ebp - 0x38], ecx
mov esi, dword [ebp - 0x30]
cmp esi, 0xffff
jle 0x4e38d9
mov esi, 0xffff
mov ecx, dword [ebp - 0x38]
mov word [eax], cx
mov word [eax + 2], si
add eax, 4
mov dword [ebp - 0x38], eax
mov dword [esp + 0x10], edx
mov dword [esp + 0xc], edi
mov dword [esp + 8], esi
mov ecx, dword [ebp - 0x1c]
lea eax, [ecx + ebx*4]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x38]
mov dword [esp], eax
mov dword [ebp - 0x60], edx
call dword [ebp - 0x24]
add eax, dword [ebp - 0x38]
lea ecx, [esi + ebx]
mov ebx, dword [ebp - 0x30]
sub ebx, esi
mov esi, ebx
mov edx, dword [ebp - 0x60]
jmp 0x4e396d
mov ebx, esi
cmp esi, 0xffff
jle 0x4e392c
mov ebx, 0xffff
mov word [eax], 0
mov word [eax + 2], bx
add eax, 4
mov dword [ebp - 0x30], eax
mov dword [esp + 0x10], edx
mov dword [esp + 0xc], edi
mov dword [esp + 8], ebx
mov eax, dword [ebp - 0x1c]
lea eax, [eax + ecx*4]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x30]
mov dword [esp], eax
mov dword [ebp - 0x60], edx
mov dword [ebp - 0x64], ecx
call dword [ebp - 0x24]
add eax, dword [ebp - 0x30]
mov ecx, dword [ebp - 0x64]
add ecx, ebx
sub esi, ebx
mov edx, dword [ebp - 0x60]
test esi, esi
jne 0x4e391d
cmp dword [ebp - 0x34], 0
jne 0x4e397a
mov dword [ebp - 0x20], eax
mov ecx, dword [ebp - 0x28]
cmp dword [ebp - 0x2c], ecx
jge 0x4e398d
mov ebx, dword [ebp - 0x2c]
mov dword [ebp - 0x30], ebx
jmp 0x4e381e
mov ebx, edx
mov esi, dword [ebp + 8]
mov edx, dword [esi + 0x10]
shr dx, 2
movzx edx, dx
mov ecx, dword [ebp - 0x1c]
lea ecx, [ecx + edx*4]
mov dword [ebp - 0x1c], ecx
inc dword [ebp - 0x40]
jmp 0x4e3148