Function at 0x424640
Capabilities:
Packed with generic packer
Resolve function by parsing pe exports

Disassembly:
pushal
xor eax, eax
mov esi, section.UPX1
lea edi, [esi - 0x1a000]
push edi
mov ebp, esp
lea ebx, [esp - 0x3e80]
push eax
cmp esp, ebx
jne 0x424658
push ebx
push 0x22394
push edi
inc esi
inc esi
add ebx, 4
push ebx
add ebx, 4
push 0x962f
push esi
push ebx
push eax
mov dword [ebx], 0x20003
nop
nop
nop
nop
nop
push ebp
push edi
push esi
push ebx
add esp, 0xffffff84
mov edi, dword [esp + 0x90]
mov dword [esp + 0x74], 0
mov byte [esp + 0x73], 0
mov eax, dword [esp + 0x9c]
lea ebx, [edi + 4]
mov dword [esp + 0x78], ebx
mov ebx, 1
movzx ecx, byte [edi + 2]
mov ebp, ebx
shl ebp, cl
mov edx, ebp
dec edx
mov dword [esp + 0x6c], edx
movzx ecx, byte [edi + 1]
shl ebx, cl
dec ebx
mov dword [esp + 0x68], ebx
mov ebx, dword [esp + 0xa8]
movzx ebp, byte [edi]
mov dword [eax], 0
mov dword [esp + 0x60], 0
mov dword [ebx], 0
mov ebx, 0x300
mov dword [esp + 0x64], ebp
mov dword [esp + 0x5c], 1
mov dword [esp + 0x58], 1
mov dword [esp + 0x54], 1
mov dword [esp + 0x50], 1
movzx ecx, byte [edi + 1]
add ecx, ebp
shl ebx, cl
lea ecx, [ebx + 0x736]
cmp dword [esp + 0x74], ecx
jae 0x424732
mov ebx, dword [esp + 0x78]
mov word [ebx], 0x400
add ebx, 2
loop 0x424728
mov ebx, dword [esp + 0x94]
xor edi, edi
mov dword [esp + 0x48], 0xffffffff
mov esi, ebx
add esi, dword [esp + 0x98]
mov dword [esp + 0x4c], esi
xor edx, edx
cmp ebx, dword [esp + 0x4c]
je 0x4250d8
movzx ecx, byte [ebx]
shl edi, 8
inc edx
inc ebx
or edi, ecx
cmp edx, 4
jle 0x424752
mov eax, dword [esp + 0xa4]
cmp dword [esp + 0x74], eax
jae 0x4250e0
mov ebp, dword [esp + 0x74]
and ebp, dword [esp + 0x6c]
mov ecx, dword [esp + 0x60]
mov edx, dword [esp + 0x78]
shl ecx, 4
mov dword [esp + 0x44], ebp
add ecx, ebp
cmp dword [esp + 0x48], 0xffffff
lea ebp, [edx + ecx*2]
ja 0x4247ba
cmp ebx, dword [esp + 0x4c]
je 0x4250d8
shl dword [esp + 0x48], 8
movzx ecx, byte [ebx]
shl edi, 8
inc ebx
or edi, ecx
mov eax, dword [esp + 0x48]
mov dx, word [ebp]
shr eax, 0xb
movzx ecx, dx
imul eax, ecx
cmp edi, eax
jae 0x4249b0
mov dword [esp + 0x48], eax
mov eax, 0x800
sub eax, ecx
mov cl, byte [esp + 0x64]
sar eax, 5
mov esi, 1
lea eax, [edx + eax]
movzx edx, byte [esp + 0x73]
mov word [ebp], ax
mov ebp, dword [esp + 0x74]
and ebp, dword [esp + 0x68]
mov eax, dword [esp + 0x78]
shl ebp, cl
mov ecx, 8
sub ecx, dword [esp + 0x64]
sar edx, cl
add ebp, edx
imul ebp, ebp, 0x600
cmp dword [esp + 0x60], 6
lea ebp, [eax + ebp + 0xe6c]
mov dword [esp + 0x14], ebp
jle 0x4248f7
mov ecx, dword [esp + 0x74]
sub ecx, dword [esp + 0x5c]
mov eax, dword [esp + 0xa0]
movzx ecx, byte [eax + ecx]
mov dword [esp + 0x40], ecx
shl dword [esp + 0x40], 1
mov ecx, dword [esp + 0x40]
lea edx, [esi + esi]
mov ebp, dword [esp + 0x14]
and ecx, 0x100
cmp dword [esp + 0x48], 0xffffff
lea esi, [ebp + ecx*2]
mov dword [esp + 0x3c], ecx
lea ebp, [esi + edx]
ja 0x424886
cmp ebx, dword [esp + 0x4c]
je 0x4250d8
shl dword [esp + 0x48], 8
movzx esi, byte [ebx]
shl edi, 8
inc ebx
or edi, esi
mov eax, dword [esp + 0x48]
mov cx, word [ebp + 0x200]
shr eax, 0xb
movzx esi, cx
imul eax, esi
cmp edi, eax
jae 0x4248c1
mov dword [esp + 0x48], eax
mov eax, 0x800
sub eax, esi
mov esi, edx
sar eax, 5
cmp dword [esp + 0x3c], 0
lea eax, [ecx + eax]
mov word [ebp + 0x200], ax
je 0x4248e1
jmp 0x4248ef
sub dword [esp + 0x48], eax
sub edi, eax
mov eax, ecx
lea esi, [edx + 1]
shr ax, 5
sub cx, ax
cmp dword [esp + 0x3c], 0
mov word [ebp + 0x200], cx
je 0x4248ef
cmp esi, 0xff
jle 0x424844
jmp 0x424968
cmp esi, 0xff
jg 0x424968
lea edx, [esi + esi]
mov ebp, dword [esp + 0x14]
add ebp, edx
cmp dword [esp + 0x48], 0xffffff
ja 0x424922
cmp ebx, dword [esp + 0x4c]
je 0x4250d8
shl dword [esp + 0x48], 8
movzx eax, byte [ebx]
shl edi, 8
inc ebx
or edi, eax
mov eax, dword [esp + 0x48]
mov cx, word [ebp]
shr eax, 0xb
movzx esi, cx
imul eax, esi
cmp edi, eax
jae 0x424950
mov dword [esp + 0x48], eax
mov eax, 0x800
sub eax, esi
mov esi, edx
sar eax, 5
lea eax, [ecx + eax]
mov word [ebp], ax
jmp 0x4248ef
sub dword [esp + 0x48], eax
sub edi, eax
mov eax, ecx
lea esi, [edx + 1]
shr ax, 5
sub cx, ax
mov word [ebp], cx
jmp 0x4248ef
mov edx, dword [esp + 0x74]
mov eax, esi
mov esi, dword [esp + 0xa0]
mov byte [esp + 0x73], al
mov byte [edx + esi], al
inc edx
cmp dword [esp + 0x60], 3
mov dword [esp + 0x74], edx
jg 0x424995
mov dword [esp + 0x60], 0
jmp 0x4250b0
cmp dword [esp + 0x60], 9
jg 0x4249a6
add dword [esp + 0x60], 0xfffffffd
jmp 0x4250b0
add dword [esp + 0x60], 0xfffffffa
jmp 0x4250b0
mov ecx, dword [esp + 0x48]
sub edi, eax
mov esi, dword [esp + 0x60]
sub ecx, eax
mov eax, edx
shr ax, 5
sub dx, ax
cmp ecx, 0xffffff
mov word [ebp], dx
mov ebp, dword [esp + 0x78]
lea esi, [ebp + esi*2]
mov dword [esp + 0x38], esi
ja 0x4249f3
cmp ebx, dword [esp + 0x4c]
je 0x4250d8
movzx ebp, byte [ebx]
shl edi, 8
shl ecx, 8
inc ebx
or edi, ebp
mov ebp, dword [esp + 0x38]
mov eax, ecx
shr eax, 0xb
mov dx, word [ebp + 0x180]
movzx ebp, dx
imul eax, ebp
cmp edi, eax
jae 0x424a5f
mov esi, eax
mov eax, 0x800
sub eax, ebp
mov ebp, dword [esp + 0x58]
sar eax, 5
mov ecx, dword [esp + 0x54]
lea eax, [edx + eax]
mov edx, dword [esp + 0x38]
mov dword [esp + 0x50], ecx
mov ecx, dword [esp + 0x78]
mov word [edx + 0x180], ax
mov eax, dword [esp + 0x5c]
mov dword [esp + 0x54], ebp
mov dword [esp + 0x58], eax
xor eax, eax
cmp dword [esp + 0x60], 6
setg al
sub ecx, 0xfffff99c
lea eax, [eax + eax*2]
mov dword [esp + 0x60], eax
jmp 0x424cd3
mov esi, ecx
sub edi, eax
sub esi, eax
mov eax, edx
shr ax, 5
mov ecx, dword [esp + 0x38]
sub dx, ax
cmp esi, 0xffffff
mov word [ecx + 0x180], dx
ja 0x424a97
cmp ebx, dword [esp + 0x4c]
je 0x4250d8
movzx ebp, byte [ebx]
shl edi, 8
shl esi, 8
inc ebx
or edi, ebp
mov eax, dword [esp + 0x38]
mov edx, esi
shr edx, 0xb
mov cx, word [eax + 0x198]
movzx eax, cx
imul edx, eax
cmp edi, edx
jae 0x424b98
mov ebp, 0x800
mov esi, edx
sub ebp, eax
mov dword [esp + 0x34], 0x800
mov eax, ebp
sar eax, 5
lea eax, [ecx + eax]
mov ebp, dword [esp + 0x38]
mov word [ebp + 0x198], ax
mov eax, dword [esp + 0x60]
mov ebp, dword [esp + 0x44]
shl eax, 5
add eax, dword [esp + 0x78]
cmp edx, 0xffffff
lea ecx, [eax + ebp*2]
ja 0x424b09
cmp ebx, dword [esp + 0x4c]
je 0x4250d8
movzx eax, byte [ebx]
shl edi, 8
shl esi, 8
inc ebx
or edi, eax
mov dx, word [ecx + 0x1e0]
mov eax, esi
shr eax, 0xb
movzx ebp, dx
imul eax, ebp
cmp edi, eax
jae 0x424b7f
sub dword [esp + 0x34], ebp
sar dword [esp + 0x34], 5
mov esi, dword [esp + 0x34]
mov dword [esp + 0x48], eax
cmp dword [esp + 0x74], 0
lea eax, [edx + esi]
mov word [ecx + 0x1e0], ax
je 0x4250d8
xor eax, eax
cmp dword [esp + 0x60], 6
mov ecx, dword [esp + 0xa0]
mov edx, dword [esp + 0x74]
setg al
lea eax, [eax + eax + 9]
mov dword [esp + 0x60], eax
mov eax, dword [esp + 0x74]
sub eax, dword [esp + 0x5c]
mov al, byte [ecx + eax]
mov byte [esp + 0x73], al
mov byte [edx + ecx], al
inc edx
mov dword [esp + 0x74], edx
jmp 0x4250b0
sub esi, eax
sub edi, eax
mov eax, edx
shr ax, 5
sub dx, ax
mov word [ecx + 0x1e0], dx
jmp 0x424cb7
mov eax, ecx
sub esi, edx
shr ax, 5
mov ebp, dword [esp + 0x38]
sub cx, ax
sub edi, edx
cmp esi, 0xffffff
mov word [ebp + 0x198], cx
ja 0x424bce
cmp ebx, dword [esp + 0x4c]
je 0x4250d8
movzx ecx, byte [ebx]
shl edi, 8
shl esi, 8
inc ebx
or edi, ecx
mov ebp, dword [esp + 0x38]
mov ecx, esi
shr ecx, 0xb
mov dx, word [ebp + 0x1b0]
movzx eax, dx
imul ecx, eax
cmp edi, ecx
jae 0x424c0b
mov esi, ecx
mov ecx, 0x800
sub ecx, eax
mov ebp, dword [esp + 0x38]
sar ecx, 5
lea ecx, [edx + ecx]
mov word [ebp + 0x1b0], cx
mov ecx, dword [esp + 0x58]
jmp 0x424cab
mov eax, esi
sub edi, ecx
sub eax, ecx
mov ecx, edx
shr cx, 5
sub dx, cx
mov ecx, dword [esp + 0x38]
cmp eax, 0xffffff
mov word [ecx + 0x1b0], dx
ja 0x424c43
cmp ebx, dword [esp + 0x4c]
je 0x4250d8
movzx ebp, byte [ebx]
shl edi, 8
shl eax, 8
inc ebx
or edi, ebp
mov esi, dword [esp + 0x38]
mov ecx, eax
shr ecx, 0xb
mov dx, word [esi + 0x1c8]
movzx ebp, dx
imul ecx, ebp
cmp edi, ecx
jae 0x424c7d
mov esi, ecx
mov ecx, 0x800
sub ecx, ebp
mov eax, dword [esp + 0x38]
sar ecx, 5
lea ecx, [edx + ecx]
mov word [eax + 0x1c8], cx
mov ecx, dword [esp + 0x54]
jmp 0x424ca3
mov esi, eax
sub edi, ecx
sub esi, ecx
mov ecx, edx
shr cx, 5
sub dx, cx
mov eax, dword [esp + 0x38]
mov word [eax + 0x1c8], dx
mov edx, dword [esp + 0x54]
mov ecx, dword [esp + 0x50]
mov dword [esp + 0x50], edx
mov ebp, dword [esp + 0x58]
mov dword [esp + 0x54], ebp
mov ebp, dword [esp + 0x5c]
mov dword [esp + 0x5c], ecx
mov dword [esp + 0x58], ebp
xor eax, eax
cmp dword [esp + 0x60], 6
mov ecx, dword [esp + 0x78]
setg al
add ecx, 0xa68
lea eax, [eax + eax*2 + 8]
mov dword [esp + 0x60], eax
cmp esi, 0xffffff
ja 0x424cf1
cmp ebx, dword [esp + 0x4c]
je 0x4250d8
movzx eax, byte [ebx]
shl edi, 8
shl esi, 8
inc ebx
or edi, eax
mov dx, word [ecx]
mov eax, esi
shr eax, 0xb
movzx ebp, dx
imul eax, ebp
cmp edi, eax
jae 0x424d32
mov dword [esp + 0x48], eax
mov eax, 0x800
sub eax, ebp
shl dword [esp + 0x44], 4
sar eax, 5
mov dword [esp + 0x2c], 0
lea eax, [edx + eax]
mov word [ecx], ax
mov edx, dword [esp + 0x44]
lea ecx, [ecx + edx + 4]
mov dword [esp + 0x10], ecx
jmp 0x424da4
sub esi, eax
sub edi, eax
mov eax, edx
shr ax, 5
sub dx, ax
cmp esi, 0xffffff
mov word [ecx], dx
ja 0x424d60
cmp ebx, dword [esp + 0x4c]
je 0x4250d8
movzx eax, byte [ebx]
shl edi, 8
shl esi, 8
inc ebx
or edi, eax
mov dx, word [ecx + 2]
mov eax, esi
shr eax, 0xb
movzx ebp, dx
imul eax, ebp
cmp edi, eax
jae 0x424dae
mov dword [esp + 0x48], eax
mov eax, 0x800
sub eax, ebp
shl dword [esp + 0x44], 4
sar eax, 5
mov dword [esp + 0x2c], 8
lea eax, [edx + eax]
mov ebp, dword [esp + 0x44]
mov word [ecx + 2], ax
lea ecx, [ecx + ebp + 0x104]
mov dword [esp + 0x10], ecx
mov dword [esp + 0x30], 3
jmp 0x424ddd
sub esi, eax
sub edi, eax
mov eax, edx
mov dword [esp + 0x48], esi
shr ax, 5
mov dword [esp + 0x2c], 0x10
sub dx, ax
mov dword [esp + 0x30], 8
mov word [ecx + 2], dx
sub ecx, 0xfffffdfc
mov dword [esp + 0x10], ecx
mov eax, dword [esp + 0x30]
mov edx, 1
mov dword [esp + 0x28], eax
lea ebp, [edx + edx]
mov esi, dword [esp + 0x10]
add esi, ebp
cmp dword [esp + 0x48], 0xffffff
ja 0x424e15
cmp ebx, dword [esp + 0x4c]
je 0x4250d8
shl dword [esp + 0x48], 8
movzx ecx, byte [ebx]
shl edi, 8
inc ebx
or edi, ecx
mov eax, dword [esp + 0x48]
mov dx, word [esi]
shr eax, 0xb
movzx ecx, dx
imul eax, ecx
cmp edi, eax
jae 0x424e41
mov dword [esp + 0x48], eax
mov eax, 0x800
sub eax, ecx
sar eax, 5
lea eax, [edx + eax]
mov edx, ebp
mov word [esi], ax
jmp 0x424e56
sub dword [esp + 0x48], eax
sub edi, eax
mov eax, edx
shr ax, 5
sub dx, ax
mov word [esi], dx
lea edx, [ebp + 1]
mov eax, dword [esp + 0x28]
dec eax
mov dword [esp + 0x28], eax
jne 0x424dea
mov cl, byte [esp + 0x30]
mov ebp, 1
shl ebp, cl
sub edx, ebp
add edx, dword [esp + 0x2c]
cmp dword [esp + 0x60], 3
mov dword [esp + 0xc], edx
jg 0x425068
sub dword [esp + 0x60], 0xfffffff9
cmp edx, 3
mov eax, edx
jle 0x424e92
mov eax, 3
mov ecx, dword [esp + 0x78]
shl eax, 7
mov dword [esp + 0x24], 6
lea eax, [ecx + eax + 0x360]
mov dword [esp + 8], eax
mov ecx, 1
lea ebp, [ecx + ecx]
mov esi, dword [esp + 8]
add esi, ebp
cmp dword [esp + 0x48], 0xffffff
ja 0x424edc
cmp ebx, dword [esp + 0x4c]
je 0x4250d8
shl dword [esp + 0x48], 8
movzx eax, byte [ebx]
shl edi, 8
inc ebx
or edi, eax
mov ecx, dword [esp + 0x48]
mov dx, word [esi]
shr ecx, 0xb
movzx eax, dx
imul ecx, eax
cmp edi, ecx
jae 0x424f08
mov dword [esp + 0x48], ecx
mov ecx, 0x800
sub ecx, eax
sar ecx, 5
lea ecx, [edx + ecx]
mov word [esi], cx
mov ecx, ebp
jmp 0x424f1d
sub dword [esp + 0x48], ecx
sub edi, ecx
mov ecx, edx
shr cx, 5
sub dx, cx
lea ecx, [ebp + 1]
mov word [esi], dx
mov ebp, dword [esp + 0x24]
dec ebp
mov dword [esp + 0x24], ebp
jne 0x424eb1
lea edx, [ecx - 0x40]
cmp edx, 3
mov dword [esp], edx
jle 0x42505e
mov ebp, edx
mov esi, edx
sar ebp, 1
and esi, 1
lea ecx, [ebp - 1]
or esi, 2
cmp edx, 0xd
mov dword [esp + 0x20], ecx
jg 0x424f6b
mov ebp, dword [esp + 0x78]
shl esi, cl
add edx, edx
mov dword [esp], esi
lea eax, [ebp + esi*2]
sub eax, edx
add eax, 0x55e
mov dword [esp + 4], eax
jmp 0x424fc1
lea edx, [ebp - 5]
cmp dword [esp + 0x48], 0xffffff
ja 0x424f90
cmp ebx, dword [esp + 0x4c]
je 0x4250d8
shl dword [esp + 0x48], 8
movzx ecx, byte [ebx]
shl edi, 8
inc ebx
or edi, ecx
shr dword [esp + 0x48], 1
add esi, esi
cmp edi, dword [esp + 0x48]
jb 0x424fa3
sub edi, dword [esp + 0x48]
or esi, 1
dec edx
jne 0x424f6e
mov eax, dword [esp + 0x78]
shl esi, 4
mov dword [esp], esi
sub eax, 0xfffff9bc
mov dword [esp + 0x20], 4
mov dword [esp + 4], eax
mov dword [esp + 0x1c], 1
mov eax, 1
mov ecx, dword [esp + 4]
add eax, eax
mov dword [esp + 0x18], eax
add ecx, eax
cmp dword [esp + 0x48], 0xffffff
ja 0x424ffc
cmp ebx, dword [esp + 0x4c]
je 0x4250d8
shl dword [esp + 0x48], 8
movzx ebp, byte [ebx]
shl edi, 8
inc ebx
or edi, ebp
mov eax, dword [esp + 0x48]
mov dx, word [ecx]
shr eax, 0xb
movzx ebp, dx
imul eax, ebp
cmp edi, eax
jae 0x42502c
mov dword [esp + 0x48], eax
mov eax, 0x800
sub eax, ebp
sar eax, 5
lea eax, [edx + eax]
mov word [ecx], ax
mov eax, dword [esp + 0x18]
jmp 0x42504b
sub dword [esp + 0x48], eax
sub edi, eax
mov eax, edx
shr ax, 5
sub dx, ax
mov eax, dword [esp + 0x18]
mov word [ecx], dx
mov edx, dword [esp + 0x1c]
inc eax
or dword [esp], edx
mov ecx, dword [esp + 0x20]
shl dword [esp + 0x1c], 1
dec ecx
mov dword [esp + 0x20], ecx
jne 0x424fce
mov eax, dword [esp]
inc eax
mov dword [esp + 0x5c], eax
je 0x4250c1
mov esi, dword [esp + 0xc]
mov ebp, dword [esp + 0x74]
sub esi, 0xfffffffe
cmp dword [esp + 0x5c], ebp
ja 0x4250d8
mov eax, dword [esp + 0xa0]
mov edx, ebp
sub eax, dword [esp + 0x5c]
add edx, dword [esp + 0xa0]
lea ecx, [eax + ebp]
mov al, byte [ecx]
inc ecx
mov byte [esp + 0x73], al
mov byte [edx], al
inc edx
inc dword [esp + 0x74]
dec esi
je 0x4250b0
mov ebp, dword [esp + 0xa4]
cmp dword [esp + 0x74], ebp
jb 0x425090
jmp 0x4250c1
mov ebp, dword [esp + 0xa4]
cmp dword [esp + 0x74], ebp
jb 0x42477c
cmp dword [esp + 0x48], 0xffffff
ja 0x4250e0
cmp ebx, dword [esp + 0x4c]
mov ecx, 1
je 0x4250ff
jmp 0x4250df
mov ebx, 1
jmp 0x4250ff
inc ebx
sub ebx, dword [esp + 0x94]
xor ecx, ecx
mov edx, dword [esp + 0x9c]
mov eax, dword [esp + 0x74]
mov dword [edx], ebx
mov edi, dword [esp + 0xa8]
mov dword [edi], eax
sub esp, 0xffffff84
pop ebx
pop ebp
pop eax
pop esi
add ebp, dword [ebx - 4]
add eax, dword [ebx - 8]
xor eax, eax
lea edi, [esp - 0x100]
mov esp, esi
push eax
cmp esp, edi
jne 0x425117
mov esp, esi
xor edi, edi
pop ebp
mov edi, ebp
mov ecx, 0xc8
mov al, byte [edi]
inc edi
add al, 0x18
cmp al, 1
ja 0x425128
cmp byte [edi], 4
jne 0x425128
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg al, ah
sub eax, edi
sub bl, 0xe8
add eax, ebp
mov dword [edi], eax
add edi, 5
mov al, bl
loop 0x42512d
lea edi, [ebp + 0x22000]
mov eax, dword [edi]
test eax, eax
je 0x42519c
mov ebx, dword [edi + 4]
lea eax, [eax + ebp + 0x25000]
add ebx, ebp
push eax
add edi, 8
call dword [ebp + 0x25064]
xchg esi, eax
mov al, byte [edi]
inc edi
or al, al
je 0x42515a
mov ecx, edi
push edi
dec eax
repne scasb al, byte es:[edi]
push esi
call dword [ebp + 0x25068]
or eax, eax
je 0x425196
mov dword [ebx], eax
sub ebx, 0xfffffffc
jmp 0x425177
call dword [ebp + 0x25078]
mov ebx, dword [ebp + 0x2506c]
lea edi, [ebp - 0x1000]
mov esi, 0x1000
push eax
push esp
push 4
push esi
push edi
call ebx
lea eax, [edi + 0x1ef]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push esi
push edi
call ebx
pop ebx
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0x4251d0
sub esp, 0xffffff80
jmp section.UPX0