Function at 0x479e40
Capabilities:
Enumerate pe sections

Disassembly:
push ebp
xor ecx, ecx
xor edx, edx
push edi
push esi
push ebx
sub esp, 0x6c
mov ebp, dword [esp + 0x84]
mov word [esp + 0x4a], cx
mov dword [esp + 0x3e], 0
mov eax, dword [ebp]
lea ecx, [ebp + 4]
lea ebx, [ebp + 0x12]
mov dword [esp + 0x42], 0
mov dword [esp + 0x46], 0
mov dword [esp + 0x3a], eax
mov dword [esp + 0x14], ecx
mov dword [esp + 0x2c], ebx
lea esi, [esi]
movzx eax, word [ecx]
mov esi, edx
or esi, 1
test al, 1
cmovne edx, esi
shr ax, 1
mov esi, eax
or si, 0x8000
test dl, 2
cmovne eax, esi
add ecx, 2
add edx, edx
mov word [ecx - 2], ax
cmp ebx, ecx
jne 0x479e88
mov eax, dword [esp + 0x80]
movzx edi, word [eax + 6]
mov eax, edi
mov dword [esp + 0x24], edi
shl eax, 0x10
sub eax, edi
lea edi, [esp + 0x4c]
mov dword [esp + 0x1c], eax
lea eax, [ebp + 6]
mov dword [esp + 0x18], eax
lea eax, [esp + 0x3e]
mov dword [esp + 0x10], eax
nop
movzx esi, word [ebp + 4]
movzx edx, word [ebp + 6]
mov eax, esi
shl eax, 0x10
add eax, edx
cmp dword [esp + 0x1c], eax
jb 0x479ff8
xor edx, edx
div dword [esp + 0x24]
mov word [esp + 0x20], ax
movzx eax, ax
mov edx, dword [esp + 0x80]
mov ecx, edi
call sym.___m16m
mov edx, esi
mov eax, 2
jmp 0x479f25
movzx edx, word [ebp + eax*2]
cmp word [edi + eax*2], dx
jne 0x47a010
add eax, 1
cmp eax, 9
jne 0x479f20
mov edx, 7
xor ecx, ecx
nop
movzx eax, word [ebp + edx*2 + 2]
sub eax, ecx
movzx ecx, word [edi + edx*2 + 2]
sub eax, ecx
mov ecx, eax
mov word [ebp + edx*2 + 2], ax
shr ecx, 0x10
and ecx, 1
sub edx, 1
jne 0x479f40
mov ebx, dword [esp + 0x10]
movzx eax, word [esp + 0x20]
mov word [ebx], ax
mov eax, dword [esp + 0x18]
add ebx, 2
mov dword [esp + 8], 0xc
mov dword [esp + 4], eax
mov eax, dword [esp + 0x14]
mov dword [esp], eax
call sym._memmove
xor eax, eax
mov dword [esp + 0x10], ebx
mov word [ebp + 0x10], ax
cmp ebx, edi
jne 0x479ee0
mov ecx, dword [esp + 0x2c]
mov edx, dword [esp + 0x14]
xor eax, eax
lea esi, [esi]
nop
add edx, 2
or ax, word [edx - 2]
cmp ecx, edx
jne 0x479fb0
mov edx, dword [esp + 0x3a]
test ax, ax
setne al
mov dword [ebp], edx
mov edx, dword [esp + 0x3e]
movzx eax, al
mov dword [ebp + 4], edx
mov edx, dword [esp + 0x42]
mov dword [ebp + 8], edx
mov edx, dword [esp + 0x46]
mov dword [ebp + 0xc], edx
movzx edx, word [esp + 0x4a]
mov word [ebp + 0x10], dx
add esp, 0x6c
pop ebx
pop esi
pop edi
pop ebp
ret
mov edx, 0xffffffff
mov eax, 0xffff
mov word [esp + 0x20], dx
jmp 0x479f07
jbe 0x479f37
movzx eax, word [esp + 0x20]
xor ecx, ecx
lea edx, [esp + 0x5c]
sub eax, 1
mov word [esp + 0x22], ax
mov eax, dword [esp + 0x80]
add eax, 0x10
mov dword [esp + 0x28], eax
mov ebx, eax
lea esi, [esi]
movzx eax, word [edx]
sub edx, 2
sub ebx, 2
sub eax, ecx
movzx ecx, word [ebx + 2]
sub eax, ecx
mov ecx, eax
mov word [edx + 2], ax
lea eax, [esp + 0x4e]
shr ecx, 0x10
and ecx, 1
cmp edx, eax
jne 0x47a040
mov eax, 2
jmp 0x47a075
movzx esi, word [ebp + eax*2]
cmp word [edi + eax*2], si
jne 0x47a098
add eax, 1
cmp eax, 9
jne 0x47a070
movzx eax, word [esp + 0x22]
mov word [esp + 0x20], ax
jmp 0x479f37
jbe 0x47a083
sub word [esp + 0x20], 2
mov ebx, dword [esp + 0x28]
xor ecx, ecx
lea edx, [esp + 0x5c]
lea esi, [esi]
movzx eax, word [edx]
sub edx, 2
sub ebx, 2
sub eax, ecx
movzx ecx, word [ebx + 2]
sub eax, ecx
mov ecx, eax
mov word [edx + 2], ax
lea eax, [esp + 0x4e]
shr ecx, 0x10
and ecx, 1
cmp edx, eax
jne 0x47a0b0
jmp 0x479f37