Function at 0x1031dc70
Capabilities:
Packed with generic packer

Disassembly:
cmp byte [esp + 8], 1
jne 0x1031de71
pushal
mov esi, section.UPX1
lea edi, [esi - 0x1b1000]
lea eax, [edi + 0x2c5760]
push dword [eax]
mov dword [eax], 0x41b9244a
push eax
push edi
or ebp, 0xffffffff
jmp 0x1031dcaa
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x1031dcb1
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x1031dca0
mov eax, 1
add ebx, ebx
jne 0x1031dcc3
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x1031dcd4
jne 0x1031dcf3
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x1031dcf3
dec eax
add ebx, ebx
jne 0x1031dce0
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x1031dcb8
add ebx, ebx
jne 0x1031dcef
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0x1031dd45
xor ecx, ecx
sub eax, 3
jb 0x1031dd0b
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x1031dd7a
sar eax, 1
mov ebp, eax
jmp 0x1031dd16
add ebx, ebx
jne 0x1031dd16
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x1031dce4
inc ecx
add ebx, ebx
jne 0x1031dd24
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x1031dce4
add ebx, ebx
jne 0x1031dd31
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x1031dd26
jne 0x1031dd42
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x1031dd26
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x1031dd64
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x1031dd56
jmp 0x1031dca6
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x1031dd64
add edi, ecx
jmp 0x1031dca6
pop esi
pop edi
pop eax
mov dword [edi], eax
mov edi, esi
mov ecx, 0x5c47
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x1031dd86
cmp byte [edi], 0x23
jne 0x1031dd86
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov al, bl
loop 0x1031dd8b
lea edi, [esi + 0x311000]
mov eax, dword [edi]
or eax, eax
je 0x1031de03
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x31d0f0]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x31d4f0]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x1031ddb8
mov ecx, edi
jns 0x1031dde7
movzx eax, word [edi]
inc edi
push eax
inc edi
mov ecx, 0xaef24857
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x31d4f4]
or eax, eax
je 0x1031ddfd
mov dword [ebx], eax
add ebx, 4
jmp 0x1031ddd5
popal
xor eax, eax
ret 0xc
add edi, 4
lea ebx, [esi - 4]
xor eax, eax
mov al, byte [edi]
inc edi
or eax, eax
je 0x1031de34
cmp al, 0xef
ja 0x1031de27
add ebx, eax
mov eax, dword [ebx]
xchg ah, al
rol eax, 0x10
xchg ah, al
add eax, esi
mov dword [ebx], eax
jmp 0x1031de09
and al, 0xf
shl eax, 0x10
mov ax, word [edi]
add edi, 2
jmp 0x1031de16
mov ebp, dword [esi + 0x31d4f8]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x22f]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0x1031de68
sub esp, 0xffffff80
jmp 0x10159df1